Langfuse
An AI workflow gave the wrong answer. Langfuse helps inspect the model calls, retrieval steps, tool activity, timing, and cost behind the result.
https://github.com/langfuse/langfuse
When this is useful
An assistant returns an unhelpful answer. You can see the result, but you cannot tell whether the problem started with the prompt, retrieved context, a tool response, or a later step.
Langfuse provides a place to investigate that chain.
What this is
Langfuse is an open-source platform for observing and evaluating AI applications. Its tracing records instrumented operations such as model calls, retrieval, and tool execution, including their inputs, outputs, relationships, and timing. It also supports token and cost tracking, prompt management, datasets, and evaluations.
Python and JavaScript/TypeScript SDKs and OpenTelemetry support provide routes for connecting an application. Deployment options include Langfuse Cloud and self-hosting.
Why it belongs in the Lab
The LangGraph entry describes how to structure an agent workflow. Langfuse complements that perspective by helping people inspect what a particular run actually did.
Our editorial reason for including it is the path from an observed failure to an inspectable example. A useful trace can become a case for evaluation rather than disappearing into a conversation.
A small first setup
Instrument one bounded workflow, such as answering a question from a document collection.
- Record the request, retrieval step, model call, and final response as connected observations.
- Inspect a successful run and a failed run.
- Look for missing context, slow steps, and differences between the retrieved material and the answer.
- Turn one representative failure into an evaluation example.
Begin with the questions you need to answer; that determines which operations and context to record.
What to account for
Trace quality depends on instrumentation. Missing operations and context remain missing, and a detailed trace does not itself establish that a conclusion was correct.
Prompts and responses may contain sensitive material. Decide what to capture, mask, retain, and allow people to access. Self-hosting adds operational responsibility; the documented stack includes several storage services, rather than just one application container.
Explore further
- Observability overview
- Evaluation overview
- Self-hosting and deployment responsibilities
- Related insight: Observability is more important than intelligence
Documentation reviewed October 29, 2026.