You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/templates/rag-pinecone-multi-query
Lance Martin bc6f6e968e
Add template for Pinecone + Multi-Query (#12353)
11 months ago
..
rag_pinecone_multi_query Add template for Pinecone + Multi-Query (#12353) 11 months ago
tests Add template for Pinecone + Multi-Query (#12353) 11 months ago
LICENSE Add template for Pinecone + Multi-Query (#12353) 11 months ago
README.md Add template for Pinecone + Multi-Query (#12353) 11 months ago
poetry.lock Add template for Pinecone + Multi-Query (#12353) 11 months ago
pyproject.toml Add template for Pinecone + Multi-Query (#12353) 11 months ago
rag_pinecone.ipynb Add template for Pinecone + Multi-Query (#12353) 11 months ago

README.md

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.