Skip to content

That's just a taste — their profile full of gems!

Visit profile
User avatar
Stephen Williams
July 3882

RAG evaluation needs better defaults

I keep seeing teams ship RAG apps that are "working" right up until someone asks a real question.

That’s the core reason I like frameworks like RAGAS: they force you to stop grading a RAG system on vibes and start evaluating the two parts that actually matter:

retrieval and generation.

A lot of beginner RAG content skips this distinction, but it’s the whole game.

If your retriever pulls the wrong context, the model is already in a hole.
If the retriever does its job and the model still answers badly, that’s a different problem.
Lumping both together under "LLM quality" is how people waste weeks tuning the wrong component.

The useful mental model is simple:

A RAG pipeline ingests data, chunks it, embeds it, stores it, retrieves relevant context for a user query, and then asks the LLM to answer using that context.

So when I evaluate a RAG app, I want to know at least two things:

  • Did the system retrieve the right information?
  • Did the model answer faithfully based on that information?

That’s where the basic RAGAS setup is actually helpful for beginners. You provide:

  • a question
  • a ground truth
  • the model’s answer
  • the retrieved context

Then you score the result.

Two starter metrics stand out:

Faithfulness checks whether the answer is actually supported by the retrieved context.

Answer correctness checks whether the answer matches the ground truth.

That distinction matters more than most teams realize.

A model can have low faithfulness and decent correctness if it answers from parametric memory instead of the retrieved docs. That may look fine in a demo, but it’s a red flag in production. If your system is supposed to answer from your knowledge base, "the model knew it anyway" is not a success case.

On the flip side, you can get high faithfulness and poor correctness if the retriever fetched bad or incomplete context and the model answered consistently with it. In that case, your generation layer may be fine; your retrieval stack isn’t.

That’s the kind of diagnosis people need before they start swapping models, re-chunking everything, or buying a new vector DB because a vendor took them to dinner.

What I also like here is the operational simplicity.

You can get started with a tiny dataset and evaluate outputs programmatically. No giant platform migration, no heavyweight eval bureaucracy, no "AI governance" deck with 37 arrows and zero code. Just structured examples, a few metrics, and a CSV of results you can inspect.

That said, I’d treat beginner demos for what they are: a starting point, not an eval strategy.

In practice, a real RAG eval loop should push further:

  • Use examples that reflect actual user questions, not toy trivia.
  • Break down failures by retrieval, grounding, and answer quality.
  • Track evals over time as prompts, chunking, embeddings, and models change.
  • Inspect edge cases manually instead of blindly trusting aggregate scores.

And yes, metrics like context precision, context recall, answer relevance, and semantic similarity can add signal. But the main win is not "more metrics." The win is getting the team to think clearly about what failed.

That’s still rare.

Too many RAG projects are evaluated like this:

"The answer looks pretty good."

That’s not evaluation. That’s product theater.

If I were advising a team building a RAG feature today, I’d push for one immediate upgrade: build an eval set early, even if it’s small, and separate retrieval metrics from generation metrics from day one.

Because once a RAG app is in production, every bug report turns into the same messy argument:

Was it the chunking? The embeddings? The retriever? The prompt? The model?

If you’ve already got a RAGAS-style evaluation harness in place, that argument gets a lot shorter.

And that’s the real value here: not just scoring outputs, but making RAG systems debuggable.

#mlops#aiengineering#rag#retrievalaugmentedgeneration#ragas#llmevaluation
Like
Dislike

90

24

Add a comment...