- Clone the repository
git clone https://github.com/dailybruin/dbLLM
- Install dependencies (recommended in a virtual environment). This project runs on Python version 3.9.6
pip install -q -U google-generativeai
pip install langchain
pip install python-dotenv
pip install jupyter
pip install "pinecone-client[grpc]"
pip install -U "protobuf==5.26.1"
pip install beautifulsoup4
-
Create a .env file in the root directory of the project. This is the file that will store your API keys for Pinecone and Google Gemini.
-
Inside of the .env file, create the following variables:
GOOGLE_GENAI_API_KEY="your_google_gemini_api_key"
PINECONE_API_KEY="your_pinecone_api_key"
- To get your Google Gemini API key, go to https://aistudio.google.com/apikey and click the bright blue "Get API Key" button on the top left
- To get your Pinecone API key, go to your Pinecone account, click "API Keys"
Replace the values in the quotes with your own API keys
-
Run store.py to store articles into the database
-
Run query.py to run a query and get a response