Tracing a FAQ agent with Langfuse
Recording available with Main or above.
We add Langfuse tracing to a FAQ agent, then turn its traces into reviewed evaluation examples. We examine model calls, search results, token usage and cost before choosing which answers belong in a dataset.
We start with the FAQ application from End-to-End Agent Deployment. We already use it to search the DataTalks.Club FAQ and stream answers through FastAPI. We use OpenCode to add instrumentation without rewriting that application.
We first try manual OpenTelemetry spans, then simplify the integration with
Langfuse's OpenAI client and @observe decorators. After checking the traces,
we create a human annotation queue and promote reviewed answers into a dataset.
Links
We use these resources throughout the walkthrough:
Upgrade to Basic to access this workshop
- Full workshop overview
- Complete page list
- Step-by-step tutorial
- Cancel anytime