This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.gettingstarted.ai | |
| # email: jeff@gettingstarted.ai | |
| # written by jeff | |
| # Don't forget to set your OPEN_AI_KEY | |
| # In your terminal execute this command: export OPENAI_API_KEY="YOUR_KEY_HERE" | |
| # Import required modules from the LangChain package | |
| from langchain.chains import RetrievalQA | |
| from langchain.vectorstores import Chroma |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from pinecone import Pinecone | |
| from llama_index.llms.gemini import Gemini | |
| from llama_index.vector_stores.pinecone import PineconeVectorStore | |
| from llama_index.embeddings.gemini import GeminiEmbedding | |
| from llama_index.core import StorageContext, VectorStoreIndex, download_loader | |
| from llama_index.core import Settings | |
| GOOGLE_API_KEY = "YOUR_API_KEY" |