https://github.com/nethermindeth/nethermind-encode-bootcamp
https://github.com/nethermindeth/nethermind-encode-bootcamp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nethermindeth/nethermind-encode-bootcamp
- Owner: NethermindEth
- License: mit
- Created: 2024-07-17T14:15:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T13:55:53.000Z (over 1 year ago)
- Last Synced: 2025-04-05T14:18:28.457Z (about 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streamlit and Langfuse showcase
## Running the application
1. Run required Langfuse and Postgres:
```bash
docker-compose up
```
2. Go to `http://localhost:3000/` and create a new Project there
3. In the Project settings create a new API keys (remember both public and privte key)
4. Set up environment variables with the key from the previous point (Powershell example):
```powershell
$Env:LANGFUSE_SECRET_KEY="sk-lf-..."
$Env:LANGFUSE_PUBLIC_KEY="pk-lf-..."
$Env:LANGFUSE_HOST="http://localhost:3000"
```
5. Set up also `OPENAI_API_KEY` environment variable
6. Run the main script:
```bash
streamlit run .\src\chat.py
```
7. You can also run the evaluation script:
```bash
python .\src\evaluate.py
```
*Note: This repository was created as a part of [Encode AI Bootcamp](https://www.encode.club/ai-bootcamp).*