RAG retrieval prompt
Designs a system prompt that turns user questions into retrieval queries — multi-query, HyDE, etc.
For RAG systems where retrieval quality dominates answer quality.
The prompt
Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own corpus description + question style underneath it.
Design a retrieval prompt. Output: **System prompt** (ready to use) **Strategies** (1-3 of: multi-query expansion, HyDE hypothetical doc, query rewriting, decomposition) **Example I/O** (1 user question → expanded queries) **Failure modes** (when this strategy hurts) Rules: - Match strategy to corpus type (FAQ vs long docs vs code). - Don't over-engineer — start with query rewriting.
Or run it here
Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.
Related prompts
Writes annotation guidelines that two annotators can apply consistently.
Takes a vague prompt and rewrites it to be specific, structured, and reliable.
Builds a structured eval rubric to grade LLM outputs for a specific task.
A system prompt template that pushes the model to show its reasoning before answering.
Drafts a model card with intended use, limitations, training data summary, evaluation results.
15 adversarial test cases for an LLM feature — jailbreaks, prompt injection, harmful asks.
Browse the full free AI prompt library or see more ai / ml prompts.