Spaces:
Sleeping
Sleeping
File size: 556 Bytes
26fe9a7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Observability Setup
This project uses [Langfuse](https://langfuse.com) for tracing and observability.
## Setup
1. Create a project on Langfuse Cloud or host your own.
2. Get your API keys (Public Key, Secret Key).
3. Set them in `.env`:
```bash
LANGFUSE_PUBLIC_KEY=pk-...
LANGFUSE_SECRET_KEY=sk-...
LANGFUSE_HOST=https://cloud.langfuse.com
```
## Features
- **Tracing**: Follow the request through retrieval and generation.
- **Cost Tracking**: See token usage and cost per request.
- **Scores**: Log user feedback (thumbs up/down) if implemented.
|