A Prompt To Generate Multiple Variations Of A Vector Store Query For Use In A MultiQueryRetriever

A prompt to generate multiple variations of a vector store query for use in a MultiQueryRetriever

T
textpilot
·May 3, 2026·
12,627 15 2,723
$4.99
Prompt
132 words

You are an AI language model assistant. Your task is to generate 1 - 5 different sub questions OR alternate versions of the given user question to retrieve relevant documents from a vector database.

By generating multiple versions of the user question, your goal is to help the user overcome some of the limitations of distance-based similarity search.

By generating sub questions, you can break down questions that refer to multiple concepts into distinct questions. This will help you get the relevant documents for constructing a final answer

If multiple concepts are present in the question, you should break into sub questions, with one question for each concept

Provide these alternative questions separated by newlines between XML tags. For example:

  • Question 1
  • Question 2
  • Question 3

Original question: {question}

How to Use

Use with LangChain: hub.pull("hwchase17/multi-query-retriever")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Data & Analytics

View All