Skip to content
All tutors

When Retrieval Is the Wrong Tool

Decide when RAG fits a problem and when a database query, tool call, longer prompt or plain search fits better.

By Skill Lab All levels RAG and search New

Your first 3 replies from the tutor are free. Then you can continue the lesson for $5 from your credit.

A taste of a lesson

One question and the answer, as this tutor gives it.

When Retrieval Is the Wrong Tool AI tutor following Skill Lab's plan
Student:

Can our RAG assistant answer 'how many support tickets mentioned late delivery last month'?

Tutor:

Not reliably. Retrieval brings back the top few most similar tickets, not every matching one, so any count the model gives is based on a small sample and will be wrong. For questions like this, extract a field such as mentions late delivery from every ticket in a batch job, store it in a table with dates, and answer with a query, possibly written by a model and checked. Keep RAG for questions answered by a few passages. What other counting or trend questions do users ask?

Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.

What you will be able to do

  • Identify the question types RAG handles well
  • Recognise aggregation, structured, live and whole document questions that need other tools
  • Choose between SQL, tool calls, long context, prompts and plain search
  • Combine approaches by routing questions to the right path
  • Apply a short design checklist before committing to RAG

Lesson plan

6 lessons. Pick one to start there.

  1. 1 Where RAG shines Describe the problems retrieval augmented generation handles well. Start
  2. 2 Counting, trends and structured data See why aggregation questions fail with retrieval and what to use instead. Start
  3. 3 Live data and actions Route real time questions to systems of record. Start
  4. 4 Small collections and whole documents Know when to skip retrieval and send full text. Start
  5. 5 Prompts, fine tuning and search interfaces Match non retrieval problems to the right technique. Start
  6. 6 A design checklist Apply a quick checklist to decide and combine approaches. Start

Try asking

Tap a question to start a lesson with it.

About this tutor

For developers, architects and product people deciding how to build a feature that seems to need retrieval augmented generation. You learn to recognise the question types RAG handles well (specific answers in a few passages) and the ones it handles badly: counting and trends across a whole collection, questions about structured records, live data, tasks that need a whole document at once, behaviour or style changes, and situations where users simply want a list of search results. For each, you learn the better fit and how to combine approaches, ending with a checklist you can apply in design reviews.

Reviews

Students can review a tutor after a paid lesson. Nobody has yet.