Artificial Intelligence

RAG Chatbot Accuracy: How Retrieval Quality Changes the Answer

WebPro team 9 min read

Retrieval augmented generation is usually explained as giving a model access to your documents, which implies the model does the work. It does not. Accuracy is decided before the model is involved — by which passages retrieval found. Here is where that goes wrong and how to measure it properly.

Where the accuracy actually comes from

Retrieval augmented generation is usually explained as a way of giving a language model access to your documents. That description is accurate and unhelpful, because it implies the model is doing the work. In practice the quality of a RAG chatbot is set almost entirely before the model is involved: by which passages the retrieval step found and handed over.

The consequence is direct. If retrieval returns the right passage, a competent model will produce a correct answer most of the time. If retrieval returns a plausible but wrong passage, the same model will produce a fluent, confident, wrong answer — and it will look exactly as trustworthy as a correct one.

This article explains the parts of the retrieval pipeline that determine that outcome, in business terms rather than implementation detail, and gives a checklist for evaluating whether a system is actually grounded or merely articulate.

The pipeline, and where each stage can fail

Knowledge retrieval is a sequence of steps, each of which can silently degrade the final answer. Understanding where the losses happen is what makes debugging possible.

  1. 1

    Chunking: how documents are split

    Content is divided into passages before it can be searched. Split too small and a passage loses the condition that qualifies it — 'refunds within 14 days' separated from 'except for custom work'. Split too large and the relevant sentence is diluted by surrounding text, making it harder to match. Most accuracy problems that appear mysterious trace back here.

  2. 2

    Embedding and indexing: how meaning is represented

    Passages are converted into vectors so that semantically similar text can be found. A vector search chatbot will therefore match on meaning rather than wording, which is the point — but it also means a passage about a similar-sounding product can outrank the correct one.

  3. 3

    Query handling: what is actually searched for

    The customer's question is often not a good search query. 'Does it work with our system?' contains almost no retrievable content without the conversation context. Systems that do not rewrite or expand the query before retrieval perform notably worse on multi-turn conversations.

  4. 4

    Ranking: which passages are chosen

    Retrieval returns candidates; ranking decides which few reach the model. Ranking quality is where most measurable improvement is available, and where a re-ranking step often pays for itself.

  5. 5

    Grounding: how the model is instructed to use them

    The model must be told to answer only from the supplied passages and to say so when they do not contain the answer. Without that instruction — and without checking that it is obeyed — the system will fill gaps from training data, which is where fabricated answers enter.

  6. 6

    Citation: whether the source is shown

    Not decoration. A visible source is what makes the answer auditable, and what makes a wrong answer diagnosable rather than mysterious.

What makes retrieval return the wrong thing

Retrieval failures have distinct shapes, and telling them apart is what turns a vague complaint about accuracy into a fixable problem.

  • Near-miss matches: a passage about a similar product, plan or region outranks the correct one. Usually fixed with metadata filtering rather than better embeddings.
  • Context loss at chunk boundaries: the answer is split across two passages and only one is retrieved. Fixed by overlapping chunks or by restructuring the source.
  • Missing content presented as an answer: nothing relevant exists, but the closest passage is returned anyway and the model answers from it. Fixed with a relevance threshold and an explicit 'no answer' path.
  • Stale passage wins: an outdated document ranks above the current one because it is longer or better worded. Fixed with recency metadata and retirement of superseded content.
  • Multi-part questions: the customer asked two things and only one was retrieved for. Fixed by decomposing the query.
  • Conversational references: 'and what about the second option?' retrieves nothing without the prior turns folded into the query.

Each of these is diagnosable only if the retrieval trace is visible for a given answer. A system that cannot show you which passages produced a reply cannot be improved systematically — a point worth raising during vendor evaluation, as covered in the B2B chatbot buying guide.

Evaluating accuracy properly

Most accuracy claims are made from impressions. A defensible evaluation separates retrieval quality from answer quality, because they are fixed by different work.

  1. 1

    Build a labelled question set

    A few hundred real questions with the correct source passage identified for each. This is effort, and it is the only thing that makes improvement measurable rather than anecdotal. Reuse the list from your knowledge base audit if you have one.

  2. 2

    Measure retrieval separately

    For each question, did the correct passage appear among those retrieved, and at what position? This isolates retrieval from generation, and it is the number that moves when chunking, filtering or ranking improves.

  3. 3

    Measure answer correctness by human review

    Sampled, regularly, against the source. Automated scoring is a useful signal for regressions but should not be the only judge of correctness in a B2B context where a wrong answer has commercial consequences.

  4. 4

    Measure refusal behaviour explicitly

    Include questions with no documented answer. The system should decline. A system that never refuses is not accurate — it is confident, which is a different and more dangerous property.

  5. 5

    Re-run on every content or configuration change

    Accuracy regressions from a chunking change or a content edit are invisible without a repeatable test. This is the single practice that most separates systems that improve over time from systems that drift.

Track retrieval position and refusal behaviour as first-class metrics. Teams that track only 'answer looked right' plateau quickly, because they cannot tell which stage to work on.

Data and integration requirements

The infrastructure matters less than the discipline around it, but some pieces are not optional.

  • Source content in a shape suitable for retrieval: one topic per document, conditions stated inline, explicit rather than referential.
  • Metadata on every passage — product, plan, region, language, effective date — so filtering can do work that embeddings cannot.
  • A relevance threshold with a defined behaviour below it, so 'nothing relevant found' is a supported outcome rather than an edge case.
  • Retrieval traces stored with conversations, retained long enough to investigate a complaint.
  • A content pipeline that re-indexes on change, with a way to retire superseded documents rather than leaving them to compete.
  • Access controls carried through retrieval, so a passage a user should not see cannot be surfaced by paraphrase.

That last point is frequently overlooked and hard to retrofit. Where retrieval spans systems with different permission models, our custom software services page covers how that layer is usually built. How a platform stores and versions this content — as with Vexvon's knowledge base — determines how much of this you build yourself.

Failure modes and common mistakes

The mistakes are consistent across implementations and mostly organisational.

  • Assuming a larger model fixes retrieval problems. It does not; it produces more fluent versions of the same wrong answer.
  • No relevance threshold, so the system always answers from the closest passage regardless of how far away it is.
  • Evaluating on questions written by the team that built it, which are systematically easier than real ones.
  • Treating citation as a UI nicety rather than the auditing mechanism it is.
  • Indexing everything, including superseded and internal documents, so ranking has to arbitrate between contradictory sources.
  • Measuring only end-to-end answer quality, which gives no signal about which stage to fix.
  • No re-evaluation after content changes, so accuracy degrades quietly between reviews.

Where retrieval should stop and people take over

Grounding reduces fabrication; it does not make every question safe to answer automatically.

  • Questions whose answer depends on a specific contract or negotiated terms. Retrieval may find the general policy and miss the exception that applies.
  • Anything creating a legal, financial or regulatory obligation — whether such answers may be automated at all is a decision for whoever owns that risk.
  • Questions where the documented answer is known to be under revision.
  • Cases where retrieval confidence is low, which should produce a handover rather than a hedged answer.
  • Repeated failure on the same question, which indicates a content gap and should escalate rather than retry.

Design the low-confidence path deliberately. It is used more often than teams expect, and its quality shapes the impression of the whole system.

Decision framework and next step

Four questions to work through before investing further in accuracy.

  1. 1

    Can you see which passages produced a given answer?

    If not, that is the first thing to fix. Nothing else can be improved systematically without it.

  2. 2

    Do you have a labelled question set?

    Without one you are optimising against impressions. A few hundred questions is enough to make progress measurable.

  3. 3

    Is your content shaped for retrieval?

    One topic per document, conditions inline, metadata attached. This is usually the highest-return work and the least glamorous.

  4. 4

    Does the system have a defined behaviour when nothing relevant is found?

    If the answer is 'it answers anyway', fix that before tuning anything else.

Improve in this order: content shape, chunking, metadata filtering, ranking, then generation. Working in the reverse order is common and produces small gains at high cost. If the underlying content has not been audited, start there; our AI solutions overview covers how these projects are typically staged.

Frequently asked questions

  1. 1

    What determines RAG chatbot accuracy?

    Mostly retrieval, not the model. Chunking, metadata filtering, query handling and ranking decide which passages reach the model; the model's job is to answer from them faithfully. A correct passage usually produces a correct answer; a plausible wrong one produces a fluent wrong answer.

  2. 2

    What data and integrations are required?

    Content shaped one topic per document with conditions stated inline, metadata for filtering, a relevance threshold with defined fallback behaviour, stored retrieval traces, a re-indexing pipeline with retirement of superseded documents, and access controls enforced through retrieval.

  3. 3

    Which metrics should be used?

    Retrieval hit rate and position measured separately from answer correctness, human-reviewed accuracy on a sampled basis, and refusal behaviour on deliberately unanswerable questions.

  4. 4

    What are the biggest mistakes?

    Expecting a larger model to fix retrieval problems, having no relevance threshold, evaluating on questions written in-house, indexing superseded content alongside current content, and not re-testing after changes.

  5. 5

    When should the system defer to a person?

    On contract-specific questions, anything creating legal or financial obligations, content known to be under revision, low retrieval confidence, and repeated failure on the same question.

Retrieval quality and content quality are the same problem approached from two directions — improving one without the other has a low ceiling.

Let's talk about your project

Tell us what you want to build and we will work out the scope, timeline and approach together.