Gen AI based bCourses support chatbot POC This repository contains the code for a Streamlit-based chatbot application using LangChain and AWS Bedrock.
- Conversational AI powered by Anthropic Claude via Bedrock.
- Retrieval-augmented generation (RAG) using Amazon Knowledge Bases.
- Configuration-based environment management.
- Streamlit interface for easy interaction.
git clone https://github.com/ets-berkeley-edu/bcourses-chatbot-poc.git
cd bcourses-chatbot-poc
- Install Python 3
- Create your virtual environment (venv)
- Install dependencies
pip3 install -r requirements.txt [--upgrade]
export APP_ENV=development
export APP_LOCAL_CONFIGS=~/Volumes/XYZ/bcourses_chatbot_poc_config
streamlit run app/main.py
Set your environment variables for Langsmith
export LANGSMITH_TRACING=true
export LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
export LANGSMITH_API_KEY="your_api_key"
Then run the test script(s):
python scripts/run_evaluation.py --dataset [data_set_name]