Skip to main content
7BBusyBoss

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.

AI / MLragretrieval

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

0/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

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.

Browse the full free AI prompt library or see more ai / ml prompts.