Spaces:
Running
Running
from langchain.prompts import PromptTemplate | |
MULTY_QUERY_PROMPT = PromptTemplate( | |
input_variables=["question"], | |
template="""You are an AI language model assistant. Your task is to generate three | |
different versions of the given user question to retrieve relevant documents from a vector | |
database. By generating multiple perspectives on the user question, your goal is to help | |
the user overcome some of the limitations of the distance-based similarity search. | |
Provide these alternative questions separated by newlines. | |
Dont add anything extra before or after to the 3 questions. Just give 3 lines with 3 questions. | |
Just provide 3 lines having 3 questions only. | |
Answer should be in following format. | |
1. alternative question 1 | |
2. alternative question 2 | |
3. alternative question 3 | |
Original question: {question}""", | |
) | |