mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-19 21:33:31 -04:00
RAG Pinecone multi query
This template performs RAG using Pinecone and OpenAI with the multi-query retriever.
This will use an LLM to generate multiple queries from different perspectives for a given user input query.
For each query, it retrieves a set of relevant documents and takes the unique union across all queries for answer synthesis.
Pinecone
This template uses Pinecone as a vectorstore and requires that PINECONE_API_KEY, PINECONE_ENVIRONMENT, and PINECONE_INDEX are set.
LLM
Be sure that OPENAI_API_KEY is set in order to the OpenAI models.