Design a Strategy for Retrieval Over Code Repositories
Turns a short description into a concrete plan to design a strategy for retrieval over code repositories, with assumptions called out instead of silently guessed.
When to use this
Use when you need a second opinion on how to design a strategy for retrieval over code repositories 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 strategy for retrieval over code repositories.
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 strategy for retrieval over code repositories.
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 structured write-up covering the approach, the concrete steps or artifacts needed, open questions, and a checklist to confirm it's ready to use.
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