RAG and Agents: Do You Need Them?

Most transcript-analysis problems need neither. Know when they help — and when a deterministic pipeline wins.

Mastery—
Quiz
—
Exercises
—
Challenge
—

Why this matters

and are powerful patterns, and they're heavily marketed. But intent classification, entity extraction and evidence selection all operate on information that's *already in the transcript*. Retrieval adds a component that can miss; agents add nondeterministic control flow that's hard to test, bound and audit.

This lesson is deliberately short. The goal is one skill: answering “do I actually need RAG or an agent for this?” — and usually answering *no*, for good reasons.

Core concept

Technical explanation + simple intuition + example

When RAG helps

RAG = look things up, then answer. You need it only when the answer depends on knowledge that isn't in the input and is too big or too changeable to put in the prompt. If the knowledge is a table with exact keys, don't use similarity search — use a database query.

When agents help

An agent decides its own next step, calls tools and loops. That's useful when you genuinely can't write the flowchart in advance. If you can draw the steps, build the steps — a fixed pipeline is cheaper, faster, testable and auditable.

The 10 questions

Every important concept should answer all of these

1What is it?

RAG injects retrieved external knowledge into prompts; agents let a model choose actions/tool calls in a loop.

2Why does it exist?

Some tasks need knowledge beyond the input or dynamic multi-step tool use.

3What problem does it solve?

RAG handles large/changing knowledge; agents handle open-ended procedures.

4How does it work internally?

RAG: index → retrieve top-k → generate with citations. Agents: model ↔ tools loop with limits.

5What does it look like on real transcript data?

Transcript intent/extraction tasks rarely need external knowledge; rate/policy checks usually need exact lookups, not semantic retrieval.

6What can go wrong?

Retrieval misses look like hallucinations; irrelevant retrieved text distracts; agents loop, overspend or take wrong actions; both are harder to evaluate.

7How do I evaluate it?

RAG: retrieval recall@k and answer faithfulness separately. Agents: task success, steps, cost, harmful-action rate on trajectory test sets.

8When should I use it?

RAG: large, unstructured, changing knowledge. Agents: tool-dependent, non-enumerable procedures with bounded risk.

9When should I NOT use it?

When everything needed is in the transcript; when knowledge is small/stable (put it in the prompt) or structured (query it); when steps are known (pipeline).

10How does it affect downstream systems?

Unneeded RAG/agents add latency, cost, failure modes and evaluation burden to every decision.

Interactive lab: Do I need RAG or an agent?

Seven realistic scenarios: pick the simplest architecture that works (deterministic code, a single call/fixed pipeline, RAG, or an agent) and read why. Then walk the RAG and agent decision trees.

PRECOMPUTED EXAMPLE
Loading lab…

Try it yourself

Conceptual (A), applied (B) and engineering (C) exercises

Q1Type B · AppliedBeginner
Task: classify each call's intent from its transcript. Do you need RAG?
Q2Type B · AppliedIntermediate
Check whether the agent quoted the current rate. Rates live in a table keyed by product and segment, updated weekly. Best approach?
Q3Type A · ConceptualIntermediate
Explain why a deterministic pipeline is usually preferable to an agent for transcript intent analysis.

Graded by a transparent keyword rubric (not an LLM) — it checks for the key ideas, then shows a model answer for self-assessment.

Q4Type C · EngineeringAdvanced
A stakeholder asks for “RAG over all past transcripts” to improve intent classification. Write your recommendation.

Graded by a transparent keyword rubric (not an LLM) — it checks for the key ideas, then shows a model answer for self-assessment.

Real-world application

A team built a RAG system over 2,000 past transcripts to “help classify intent”. Retrieval surfaced similar calls; the model then sometimes copied *their* outcomes. Accuracy dropped 3 points versus classifying the transcript alone, latency doubled, and the vector index needed maintenance. Removing RAG and adding four carefully chosen few-shot examples beat the RAG system on every metric.

Common mistakes

Adding RAG because the task involves 'documents'

The transcript already contains the evidence.

Fix: Ask: is the needed knowledge outside the input? If not, no RAG.

Vector search over structured tables

Similarity isn't exact lookup; you get 'close' wrong rows.

Fix: Extract keys and query the table.

Agents for fixed workflows

Nondeterminism without benefit.

Fix: Build the known sequence as a pipeline or router.

Engineering decision

Does this transcript problem need RAG or an agent?

Use it when
  • RAG: answers depend on large, unstructured, changing external knowledge
  • Agent: next steps depend on tool results in ways you can't enumerate — with limits and audits
Avoid it when
  • The transcript contains everything needed
  • Knowledge is small and stable (prompt it) or structured (query it)
  • The procedure is known (pipeline)
Trade-offs
RAG vs Prompt context
RAG scales to big corpora but can miss; prompt context never misses but costs tokens on every call.
Agent vs Deterministic pipeline
Agents handle open-ended tasks; pipelines are cheaper, testable and auditable.

Quiz

Pass mark 60%. Missed questions go to your mistake log and spaced review.

0/5 answered
Q1Beginner
RAG is most appropriate when…
Q2Intermediate
In a RAG system, a wrong answer could be caused by…
Q3Intermediate
The defining property of an agent is…
Q4Intermediate
If you must deploy an agent, which safeguards are essential? (Select all)
Select all that apply.
Q5Advanced
Retrieving similar past calls (with their labels) into the prompt to classify a new call risks…

Advanced challenge

Type C · EngineeringAdvanced
Choose the simplest adequate architecture for each task.
Extract loan amount, tenure and intent from each call
Parse '50 L' and 'five lac' into integers
Answer agents' questions about 400 pages of monthly-changing policy PDFs
Investigate a stalled application across 3 systems where each lookup decides the next
Check the quoted rate against a keyed rate table
Key terms in this lesson