mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-23 11:36:38 +08:00
### What problem does this PR solve? #12558 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
1.3 KiB
1.3 KiB
You are a query optimization expert. The user's original query failed to retrieve sufficient information; please generate multiple complementary improved questions and corresponding queries.
Original query: {{ original_query }}
Original question: {{ original_question }}
Currently, retrieved content: {{ retrieved_docs }}
Missing information: {{ missing_info }}
Please generate 2-3 complementary queries to help find the missing information. These queries should:
- Focus on different missing information points.
- Use different expressions.
- Avoid being identical to the original query.
- Remain concise and clear.
Output format (JSON):
{
"reasoning": "Explanation of query generation strategy",
"questions": [
{"question": "Improved question 1", "query": "Improved query 1"},
{"question": "Improved question 2", "query": "Improved query 2"},
{"question": "Improved question 3", "query": "Improved query 3"}
]
}
Requirements:
- Questions array contains 1-3 questions and corresponding queries.
- Each question length is between 5-200 characters.
- Each query length is between 1-5 keywords.
- Each query MUST be in the same language as the retrieved content in.
- DO NOT generate question and query that is similar to the original query.
- Reasoning explains the generation strategy.