mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 06:17:29 +08:00
Feat: Add knowledge compilation workflows (#16515)
## Summary - Add knowledge compilation template APIs, services, and builtin template seed data - Add advanced knowledge compile structure/artifact/RAPTOR workflow support - Update parsing, dataset/document APIs, and supporting services for compilation workflows
This commit is contained in:
31
api/db/init_data/compilation_templates/tree.yaml
Normal file
31
api/db/init_data/compilation_templates/tree.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
kind: tree
|
||||
display_name: Tree — RAPTOR-based document tree
|
||||
description: >-
|
||||
Recursive Abstractive Processing for Tree-Organized Retrieval over a
|
||||
single document's chunks. Produces a hierarchical summary tree
|
||||
(root summary → cluster summaries → leaf cluster source_chunk_ids).
|
||||
config:
|
||||
kind: tree
|
||||
raptor:
|
||||
prompt: |-
|
||||
Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:
|
||||
{cluster_content}
|
||||
The above is the content you need to summarize.
|
||||
max_token: 512
|
||||
threshold: 0.1
|
||||
# Entity / relation collections are not used by the tree kind but kept
|
||||
# as empty stubs so the form schema's shared validators see a stable
|
||||
# shape regardless of kind.
|
||||
entity:
|
||||
description: ''
|
||||
fields:
|
||||
- type: ''
|
||||
description: ''
|
||||
rule: ''
|
||||
relation:
|
||||
description: ''
|
||||
fields:
|
||||
- type: ''
|
||||
description: ''
|
||||
rule: ''
|
||||
global_rules: ''
|
||||
Reference in New Issue
Block a user