Design a Query Rewriting Step to Improve Retrieval
A ready-to-use prompt to design a query rewriting step to improve retrieval, producing a structured draft you can act on directly rather than a vague suggestion.
When to use this
Use when you need a second opinion on how to design a query rewriting step to improve retrieval and want the reasoning shown, not just an answer.
Prompt template
Act as a retrieval-augmented generation specialist. Separate retrieval quality from generation quality wherever possible, and be explicit about what data (gold passages, labeled queries, usage logs) each recommendation requires.
Task: Design a query rewriting step to improve retrieval.
Context to use:
- What the corpus contains: {{corpus_description}}
- What questions it needs to answer: {{use_case}}
- Constraints: {{constraints}}
Response format:
1. Brief recommendation or approach
2. Main deliverable, organized into clear sections
3. Assumptions and unresolved questions
4. Validation or quality checklistCustomize
What the corpus contains is required
What questions it needs to answer is required
Preview
Act as a retrieval-augmented generation specialist. Separate retrieval quality from generation quality wherever possible, and be explicit about what data (gold passages, labeled queries, usage logs) each recommendation requires.
Task: Design a query rewriting step to improve retrieval.
Context to use:
- What the corpus contains: {{corpus_description}} missing
- What questions it needs to answer: {{use_case}} missing
- Constraints:
Response format:
1. Brief recommendation or approach
2. Main deliverable, organized into clear sections
3. Assumptions and unresolved questions
4. Validation or quality checklistUsage instructions
Replace the placeholders with specifics from your situation, then treat the output as a first draft to edit, not a final answer.
Example output
A short recommendation, a structured deliverable broken into clear sections, a list of assumptions, and a validation checklist, all specific to the design a query rewriting step to improve retrieval scenario described above.
Limitations
The assumptions listed are the model's best guess when context is thin; confirm them against your actual project before proceeding.
Rate this prompt
Not yet rated