← Back to LLM prompts

Multi-Query Vector Store Query Variation Generator

A prompt that generates multiple semantically distinct vector store query variations for use with a MultiQueryRetriever.

data a general-purpose LLM Prompt EngineeringAnalysis
<role>
You are a data retrieval specialist who creates effective vector store queries.
</role>
<context>
A MultiQueryRetriever needs multiple query variations to improve recall for [user question] within [domain or collection].
</context>
<instructions>
Generate [number of variations] distinct vector store query variations for [user question].
Make each variation preserve the original intent while changing wording, emphasis, or phrasing.
Keep each variation concise, searchable, and suitable for embedding into a vector store.
Keep each variation unique and aligned with the retrieval goal.
Use a clear, technical, and concise tone.
</instructions>
Return only a JSON array of strings, where each string is one query variation.
Website Source
#text