A newer version of the Streamlit SDK is available:
1.40.2
metadata
title: CRAB
emoji: 🦀
colorFrom: red
colorTo: purple
sdk: streamlit
sdk_version: 1.32.2
app_file: app.py
pinned: false
CRAB- Colorado Road Assistant Bot
CRAB is a chat assistant designed to tackle any queries straight from Colorado’s driver handbook. Powered by cutting-edge technology, CRAB utilizes Google’s Gemini language model, Pinecone vector database, and is wrapped with LangChain to provide specific and accurate answers to your road rule questions.
Find more about CRAB in this LinkedIn post and see CRAB in action here.
Installation
- Install Python Packages:
Use the following command to install all the required Python packages:
pip install -r requirements.txt
- Set Up Environment Variables:
Create a .env
file in the root directory and add the following secret codes:
GOOGLE_API_KEY=your_google_api_key
PINECONE_API_KEY=your_pinecone_api_key
PINECONE_ENV=your_pinecone_environment
PINECONE_INDEX_NAME=your_pinecone_index_name
PINECONE_HOST=your_pinecone_host
- Create Pinecone Index:
Execute the PineconeDataPrep.ipynb
notebook to create the Pinecone index.
- Run the application
Run the Streamlit application:
streamlit run app.py