mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add prompts for toc relevance check according to #10436 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
405 B
405 B
User Prompt: TOC Relevance Evaluation
You will now receive:
- A JSON list of TOC items (each with
levelandtitle) - A user query string.
Traverse the TOC hierarchically based on level numbers and assign scores (5,3,1,0,-1) according to the rules in the system prompt.
Output only the JSON array with the added "score" field.
Input TOC: {{ toc_json }}
Query: {{ query }}