LangFuse is purpose-built for LLM applications, providing features that general ML platforms don't offer
Detailed token usage and latency tracking
Automatic cost calculation per request
Built-in feedback collection and scoring
LLM prompt and model comparison
Live monitoring and debugging
Excellent dashboard experience
uv pip install langfuse
# docker-compose.yml version: '3.8' services: langfuse: image: langfuse/langfuse:latest container_name: langfuse ports: - "3000:3000" environment: - LANGFUSE_SECRET_KEY=your-secret-key - LANGFUSE_PUBLIC_KEY=your-public-key - LANGFUSE_HOST=http://localhost:3000 restart: unless-stopped # Start with: docker compose up -d
observability: enabled: true backends: - langfuse langfuse: public_key: "pk-lf-your-public-key" secret_key: "sk-lf-your-secret-key" host: "http://localhost:3000" project: "superoptix-agents" tags: agent_type: "developer" tier: "genies" environment: "development"
super init langfuse_demo cd langfuse_demo
super agent pull developer --tier genies
docker compose up -d curl http://localhost:3000/api/public/health # Verify running
super agent compile developer
super agent run developer --goal "Write factorial function" --observe langfuse
# Open http://localhost:3000 in your browserobservability: langfuse: feedback: enabled: true score_range: [1, 5] comment_enabled: true categories: - "accuracy" - "helpfulness" - "code_quality"
observability: langfuse: ab_testing: enabled: true variants: - name: "baseline" config: temperature: 0.7 model: "llama3.1:8b" - name: "optimized" config: temperature: 0.5 model: "llama3.1:70b"
For traditional ML experiments, model versioning, artifact management
For research projects, beautiful visualizations, hyperparameter sweeps
For local development, no setup required, works offline