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
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")
Related Prompts
More prompts in Data & Analytics
Sql Agent System Prompt
LangChain Hub prompt: langchain-ai/sql-agent-system-prompt
Buyer Persona Legend
Generate detailed User Personas for your Business with data neatly organized into a table.
Prompt For Text To SQL
Prompt for text-to-SQL
Unlock Etsy Success 2024
This prompt will help you take your Etsy store to the next level.
Text To Postgres Sql
LangChain Hub prompt: jacob/text-to-postgres-sql
Get ChatGPT4 to efficiently teach you difficult / advanced technical concepts:
Users can expect to learn difficult or advanced technical concepts quickly and efficiently by using this template. The template helps users to break down complex concepts into smaller, more manageable pieces. This makes it easier for users to understand the concepts and to retain the information. Additionally, the template provides users with examples to help them visualize the concepts. This further enhances users' understanding of the concepts.