Two tools, two angles on the same problem: is your RAG app actually working?
One of the most difficult things about building RAG applications in chatbots is evaluation.
With basic, deterministic applications, evaluating inputs and outputs is relatively straightforward. You provide an input, expect a particular output, and write tests to verify the result.
But evaluating a chatbot? That's a different ball game.
There are several ways to answer the same question correctly. A response might be factually accurate but fail to answer the actual question. It might sound convincing but contain information that was never present in the retrieved context. Or the retrieval system might return the wrong documents, making it impossible for the LLM to generate a good answer in the first place.
How do you consistently evaluate something that doesn't always have one correct answer?
For a while, Langfuse was the tool I associated with LLM evaluation. It provides tracing, observability, prompt management, and evaluation capabilities that help you understand what's happening inside your LLM applications.
But then there's Ragas.
And this is where things get interesting.
So, what's the difference between Langfuse and Ragas?
At first glance, they might seem like competing tools. But they approach the problem from slightly different angles.
Langfuse: Understand what your application is doing
Langfuse is an LLM engineering and observability platform. It lets you trace your application's execution, inspect prompts and model responses, monitor latency and costs, and evaluate outputs using scores and evaluators.
Traces, evals, metrics, prompt management and a playground in one place. Image: Langfuse (MIT licence).
For a RAG application, you can trace the entire journey: the user's question, the retrieved documents, the prompt sent to the LLM, and the final response.
This is useful when you're debugging a production application and trying to understand why a particular answer was generated.
Ragas: Measure how well your RAG application performs
Ragas focuses on evaluating LLM applications, particularly RAG pipelines. Rather than looking only at whether the final answer seems good, it provides metrics for assessing different parts of the retrieval-and-generation process.
Ragas splits quality into generation and retrieval. Image: Ragas (Apache 2.0 licence).
Some of the key metrics include:
- Faithfulness: Is the answer supported by the retrieved context, or is the model making things up?
- Answer relevancy: Does the response actually address the user's question?
- Context precision: Are the retrieved documents relevant, and are the useful ones ranked appropriately?
- Context recall: Did the retrieval system find the information needed to answer the question?
These metrics help you investigate different failure points instead of treating every bad response as an LLM problem.
Let's make this practical
Imagine you're building a chatbot that helps technicians troubleshoot a Toshiba printer using its service manuals.
A technician asks: "Why is the printer displaying error code E03?"
The chatbot returns an answer explaining that the error relates to a paper-feed issue.
But suppose the retrieved document was for a different printer model.
The answer might sound reasonable, but it isn't necessarily correct for the device the technician is servicing.
Here's how I'd think about evaluating this application:
| Evaluation question | What to investigate |
|---|---|
| Did we retrieve the right manual? | Retrieval quality |
| Did we retrieve the relevant troubleshooting instructions? | Context precision and recall |
| Is the answer supported by the retrieved instructions? | Faithfulness |
| Did the answer address the technician's question? | Answer relevancy |
This is the distinction I find useful: you don't just want to know whether the chatbot produced a good answer; you want to understand why it did or didn't.
Ragas helps quantify aspects of RAG quality. Langfuse helps you trace, inspect, and monitor the application, and it can also run evaluations.
Do you need to choose one?
Not necessarily.
I wouldn't frame this as Langfuse versus Ragas in every situation.
If I'm building a RAG application, I can use Ragas metrics to assess retrieval and generation quality, while using Langfuse to trace application behaviour and monitor evaluations over time.
The tools can complement each other, depending on the integrations and evaluation workflow you choose.
And there's one important caveat: LLM-based evaluation isn't perfect. An evaluator can also make mistakes, so I would still use a small set of carefully reviewed examples, known expected answers, and human judgement to validate the evaluation results.
My takeaway
Building a RAG application is one thing. Knowing whether it actually works reliably is another.
The real challenge isn't simply getting an LLM to generate a response. It's establishing a repeatable way to measure whether the system retrieves the right information, grounds its answers in that information, and responds appropriately to the user.
That's why evaluation shouldn't be an afterthought.
If you're building RAG applications, I'd be interested to know: Are you using Langfuse, Ragas, both, or another evaluation framework entirely?