- Run required Langfuse and Postgres:
docker-compose up
- Go to
http://localhost:3000/
and create a new Project there - In the Project settings create a new API keys (remember both public and privte key)
- Set up environment variables with the key from the previous point (Powershell example):
$Env:LANGFUSE_SECRET_KEY="sk-lf-..."
$Env:LANGFUSE_PUBLIC_KEY="pk-lf-..."
$Env:LANGFUSE_HOST="http://localhost:3000"
- Set up also
OPENAI_API_KEY
environment variable - Run the main script:
streamlit run .\src\chat.py
- You can also run the evaluation script:
python .\src\evaluate.py
Note: This repository was created as a part of Encode AI Bootcamp.