This repository contains a Streamlit-based chatbot application that uses Retrieval Augmented Generation (RAG) to provide informative responses based on document retrieval.
- Make sure you have Python installed on your system.
- Open Command Prompt or PowerShell.
- Navigate to the project directory.
- Run the setup script:
start.bat
This script will:
- Create a virtual environment called venv
- Activate the virtual environment
- Install the required dependencies from requirements.txt
- Create a .streamlit directory with a basic secrets.toml file
- Make sure you have Python installed on your system.
- Open Terminal.
- Navigate to the project directory.
- Make the script executable and run it:
chmod +x start.sh
./start.sh
This script will:
- Create a virtual environment called venv
- Activate the virtual environment
- Install the required dependencies from requirements.txt
- Create a .streamlit directory with a basic secrets.toml file
After completing the setup, you can run the Streamlit application:
- Ensure your virtual environment is activated:
- Windows:
venv\Scripts\activate
- Mac/Linux:
source venv/bin/activate
- Windows:
- Run the Streamlit application:
streamlit run app.py
- The application will be available in your web browser at
http://localhost:8501
- API keys for OpenAI and other services can be configured in secrets.toml
- Google service account credentials are stored in service_account.json
This application demonstrates various RAG implementations including:
- Basic LLM integration
- Vector search using LangChain
- Google Vertex AI integration
- Azure Search AI integration
- RAG evaluation techniques