Files
langchain/templates/rag-pinecone
2023-10-30 13:18:16 -07:00
..
2023-10-26 19:44:30 -07:00
2023-10-25 18:47:42 -07:00
2023-10-25 18:47:42 -07:00
2023-10-25 18:47:42 -07:00
2023-10-25 18:47:42 -07:00
2023-10-29 15:50:09 -07:00

RAG Pinecone

This template performs RAG using Pinecone and OpenAI.

Pinecone

This connects to a hosted Pinecone vectorstore.

Be sure that you have set a few env variables in chain.py:

  • PINECONE_API_KEY
  • PINECONE_ENV
  • PINECONE_INDEX

LLM

Be sure that OPENAI_API_KEY is set in order to the OpenAI models.

Environment variables

You need to define the following environment variables

OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
PINECONE_API_KEY=<YOUR_PINECONE_API_KEY>
PINECONE_ENVIRONMENT=<YOUR_PINECONE_INDEX>
PINECONE_INDEX=<YOUR_PINECONE_INDEX>