Files
ragflow/api/db/init_data/compilation_templates/tree.yaml
Kevin Hu 62f94cd59b 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
2026-07-02 23:22:07 +08:00

32 lines
976 B
YAML

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: ''