Showing full traces of LLM calls with Langfuse
1. Install Langfuse and Valohai LLM
pip install langfuse valohai-llm2. Set environment variables
# Langfuse credentials (from your Langfuse project settings)
export LANGFUSE_PUBLIC_KEY="pk-..."
export LANGFUSE_SECRET_KEY="sk-..."
export LANGFUSE_HOST="https://cloud.langfuse.com" # or your self-hosted URL
# Valohai LLM credentials
export VALOHAI_LLM_API_KEY="your-jwt-key"
export VALOHAI_LLM_URL="https://llm.valohai.com" # or your instance3. Write your evaluation code
Posting individual results
Running as a task
4. View your results in Valohai LLM

Last updated
Was this helpful?
