FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Books & courses

When a RAG chatbot answers wrong, Jason Liu says fix retrieval first

The Instructor creator's Maven course teaches measuring precision, recall and MRR on test questions, because no prompt rescues a retriever that fetches the wrong document.

ShareLinkedInFacebookX

In brief

  • Jason Liu's Systematically Improving RAG Applications course on Maven teaches RAG improvement through measurement, not through demos that merely look fine.
  • Liu argues retrieval should be fixed first because it is easier to measure, is often the weak link and is the foundation for everything after it.
  • Read the free RAG Playbook post and listen to TWIML episode 709 before deciding whether to enrol.
Decision tree: it starts with the question of whether Recall@5 is high. If low, fix search because the answer has not reached the context (this branch is highlighted in orange). If high, check MRR: if MRR is low, try re-ranking because the answer is ranked too low; if MRR is high but the response is still wrong, fix the prompt because the error lies in generation.
Read the retrieval metrics to see what to fix first: low recall means fixing search, a poorly ranked answer means trying re-ranking, and only once retrieval is sound should you touch the prompt. Source: Jason Liu's Systematically Improving RAG Applications course and The RAG Playbook.

Jason Liu is an independent AI consultant, adviser and the creator of the Instructor library. His personal profile says he works with companies from Seed to Series B on RAG, context engineering and evals.

In a 2024 blog post, Liu argued that retrieval should be fixed before anything else. The topic list for Systematically Improving RAG Applications, the course he teaches on Maven under the Applied LLMs banner, follows the same line: measure retrieval, build test data, improve search.

For an FDE, this is not theory. You have built a chatbot that answers questions over a client’s internal documents, and the demo went smoothly. Now imagine that two weeks later real users start complaining that answers are wrong, incomplete or cite the wrong document.

At that point the question is no longer “how do we make it better” but “where is it failing, and what do we fix first”. Jason Liu’s course teaches you to answer the second question with numbers.

Why does Jason Liu start with retrieval?

In his free post The RAG Playbook (19 August 2024), Liu gives three reasons to fix retrieval first: it is easier to measure, it is often the weak link, and it is the foundation for everything that follows.

The second reason deserves an FDE’s careful attention. Picture a team tweaking prompts, switching models and adding instructions, while the passage containing the answer never makes it into the context. No prompt can rescue a retriever that returns the wrong documents.

What does the course teach?

According to the official page, the content covers three areas. The first is evaluating retrieval with precision, recall and MRR to find a system’s weak spots.

The second is building a synthetic data pipeline so you can experiment quickly without waiting for real user data. The third is search architecture: combining keyword search (BM25), semantic search (embeddings) and metadata.

The course page also cites a 20–40% improvement from fine-tuning embeddings. Treat that as a figure published by the seller, not independently verified. The page lists neither a price nor a start date, so check both yourself before making plans.

Three ideas worth keeping

One: measure retrieval separately from generation. Imagine a question with 3 relevant passages. The retriever returns the top 5, which include 2 correct passages at positions 2 and 4.

Recall@5 is 2/3, about 67%. Precision@5 is 2/5, or 40%. The reciprocal rank is 1/2 because the first correct passage sits at position 2, and MRR is the average of this value across the whole question set.

Each number answers a different question. Recall tells you whether the answer made it into the context at all; if recall is low, the job is to fix search.

Precision of 40% means 3 of the 5 passages handed to the model are noise, taking up space in the context and potentially pulling the answer off course. A reciprocal rank of 1/2 tells you the correct passage is not at the top: if the system only takes the top one or two passages, ranking decides whether the model sees the answer at all.

Only when recall is high, the correct passage ranks well and the answer is still wrong does the fault lie in generation.

Two: don’t wait for real users. Liu treats synthetic data as the main tool in the early stage, used to measure precision and recall. In a talk published by Parlance Labs (10 July 2024), he describes having an LLM generate 2 or 3 questions from each chunk, then checking whether the retriever finds that same chunk again.

For an FDE, this is a real advantage. You usually have to show progress in the first few weeks, before any query logs exist. A baseline table with results after each change persuades a client more than any “it looks better now”.

Three: test retrieval like unit tests. Liu wants this process to run extremely fast, so you can keep trying different ways of representing and indexing chunks. When each change of chunking strategy takes only seconds to evaluate, you experiment more and guess less.

To get a firm grip on all three ideas, try a small exercise. Suppose you have 5 questions, each with exactly one correct passage; the retriever places the correct passage at positions 1, 3, 2 and 5 for the first four questions, and fails to find it in the top 5 for the fifth.

Recall@5 is 4/5, or 80%. The reciprocal ranks are 1, 1/3, 1/2, 1/5 and 0; they sum to about 2.03, and dividing by 5 gives an MRR of about 0.41.

Read the two numbers together: the retriever almost always finds the answer, but often ranks it too low. That is a signal to improve ranking at the search layer, for example by adding BM25 or metadata, before touching the prompt.

Who is Jason Liu’s RAG course for?

The course suits engineers who have already put at least one RAG system in front of users and are stuck at the “sometimes right, sometimes wrong” stage.

If you have no system yet, you can still start, since synthetic data lets you experiment without waiting for users. Even so, build a small RAG project of your own first, so the metrics have something to attach to.

As for order, read The RAG Playbook first, then listen to episode 709 of the TWIML AI Podcast (11 November 2024), in which Liu discusses the challenges companies face with RAG and why a good enough test dataset is needed.

If these two free resources hit the problem you are facing, the Maven course is the next step.

Turning this skill into an edge in FDE hiring

This skill is easier to demonstrate than you might think. On your CV, instead of writing “built a RAG chatbot”, state how many questions your evaluation set contained and how recall changed after you switched search strategy.

When an FDE job description mentions RAG or LLMs, ask in the interview how the team measures retrieval quality. The answer tells you whether you would be joining a project with measurement discipline or one still running on gut feel.

The question also shows the interviewer that you think like someone who has done the work.

A demo only shows whether a system runs. Whether the client keeps using it after the demo ends depends on whether you can measure how well you are doing.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
5 sources
Read next on the roadmap · Stage 3: Applied AIDatabricks' GenAI exam puts 23 of 45 questions on building appsFor FDEs whose clients already run on Databricks, the weightings track a first RAG and agent project closely, while governance counts for just 8%.