Closed MrCsabaToth closed 9 months ago
https://python.langchain.com/docs/modules/data_connection/retrievers/MultiQueryRetriever 's query:
template="""You are an AI language model assistant. Your task is to generate five
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.
Original question: {question}""",
Both of these queries emphasize the multiple perspective.
Came across https://github.com/pinecone-io/examples/blob/master/learn/generation/langchain/handbook/10-langchain-multi-query.ipynb in #6 https://www.youtube.com/watch?v=VFf8XJUIHnU
His prompt: