RAG Knowledge-Base Quality: Reduce Wrong Answers by Fixing Source Documents First

RAG Knowledge-Base Quality: Reduce Wrong Answers by Fixing Source Documents First

Your retrieval augmented generation assistant keeps returning the wrong revision of a work instruction, even though the prompt looks reasonable. One possible cause is an outdated document that remains in the retrieval index. Check the retrieved evidence before deciding whether the source, retrieval pipeline, or model needs fixing.

This guide walks through a practical quality audit for RAG knowledge base quality, starting with document authority, version ownership, conflicts, chunk context, and source traceability. You will also get a source-quality checklist, an evaluation set that separates retrieval defects from generation errors, and a simple owner assignment model so corrective action actually happens.

Key Takeaways

  • Check source quality before treating wrong answers as prompt problems.
  • Assign document owners and control approved revisions.
  • Preserve scope and source details in retrieved chunks.
  • Evaluate retrieval quality and answer accuracy separately.
  • Retire superseded content and verify corrections with repeatable tests.

Why RAG Knowledge Base Quality Comes Before Prompt Tuning

Prompt changes can improve how a model uses evidence, handles conflicts, or declines to answer. They do not update a retired procedure in the source collection. When retrieved evidence is wrong, correct it and retest before attributing the failure to the model.

Microsoft's RAG design and evaluation guide describes a pipeline that retrieves content and supplies it to a language model as context. Source quality matters, but retrieval configuration, instructions, and model behavior also affect the answer.

Prompt workarounds for defective sources may need revision after those documents are corrected. Use the audit below to identify source problems before tuning around them.

The Six-Part Document Quality Audit for Retrieval Augmented Generation

The Six-Part Document Quality Audit for Retrieval Augmented Generation

Run this audit as a short, timeboxed review rather than a year-long cleanup program. For a pilot, review fifty frequently retrieved documents alongside high-risk procedures and sources the assistant should retrieve but misses. Treat fifty as a practical starting point, not a validated sample-size requirement.

1. Document Authority

Decide which document is authoritative for each topic. For procedural answers, restrict retrieval to approved sources using separate collections or enforced metadata filters. Keep drafts and informal notes available only for use cases that explicitly allow them.

2. Version Ownership

Each document needs a named owner and a review date. Assign responsibility for updates when a policy changes. Store an owner identifier in source metadata and keep it synchronized with the document-management system.

3. Conflict Detection

Search the corpus for competing statements on the same topic, such as two different approval thresholds. Resolve conflicts by merging, superseding, or explicitly scoping each document. Define how the assistant should flag unresolved conflicts instead of treating either source as an approved answer.

4. Chunk Context

A passage reading "approval is not required" needs the conditions that make it applicable. Preserve the document title, section path, revision, and scope when preparing chunks, using Microsoft's guidance on enriching RAG chunks as a technical reference.

Configure the pipeline to pass relevant metadata to the generator or apply it as a retrieval filter; storing metadata alone does not ensure the model sees it. Test whether each retrieved passage includes the conditions needed to interpret it.

5. Source Traceability

For source-based answers, require a document identifier, revision, and link to the supporting passage. Check that the citation supports the answer and that the reviewer can open it. A citation alone is not proof of correctness.

6. Retirement and Archival

Superseded documents need a clear exit path from retrieval for current procedures. Retain them according to your records policy. If historical questions are supported, require explicit date or revision filters and clearly label historical answers.

Those priorities turn into a checklist your reviewers can apply consistently.

A Source-Quality Checklist for Document Quality Review

Give reviewers a single page they can apply to any candidate document. Consistency matters more than sophistication here. Two reviewers should reach the same verdict on the same file.

  • Does the document carry a revision number and an effective date visible in the text, not only in the file system?
  • Is a single owner named, with a review cycle that has not lapsed?
  • Does the title state the scope, including site, product line, or jurisdiction where that matters?
  • Are there duplicate or near-duplicate copies elsewhere in the index?
  • Does any section contradict another approved source on thresholds, roles, or timing?
  • Do headings survive chunking, and does each chunk make sense when read alone?
  • Have tables, diagrams, and scanned pages been checked after extraction for missing or distorted information?
  • Can a reader trace every claim back to a policy, standard, or data source?

Prioritize defects by their consequences and observed frequency. Treat ambiguous authority, expired instructions, and unresolved conflicts as reasons for review before a source is approved.

Once the corpus is cleaner, you need a way to measure whether answers improved.

Building an Evaluation Set That Separates Retrieval Defects From Generation Errors

Building an Evaluation Set That Separates Retrieval Defects From Generation Errors

An overall accuracy score does not identify the cause of a failure. Inspect whether the system retrieved adequate evidence and whether the generator used it correctly. Record source defects separately, and allow a case to have more than one cause.

AWS describes separate retrieval and generation evaluations, including context relevance and answer faithfulness. Faithfulness measures consistency with retrieved evidence; an answer can be faithful to an outdated source and still be wrong for the user.

As a pilot, build sixty to one hundred representative questions from suitably de-identified user logs, then expand coverage according to risk and use-case diversity. Include known-conflict questions, recently changed procedures, and questions with no valid answer. This range is a starting suggestion, not a statistical adequacy threshold.

Defect Class Observable Symptom Possible Root Cause Suggested Owner
Retrieval miss Correct document exists but never appears in context Chunking, metadata gaps, embedding mismatch Search or platform engineer
Stale retrieval Superseded revision returned confidently Retired document still indexed Document owner
Conflict collapse Answer flips between two policies Unresolved contradictory sources Process or policy owner
Context loss Answer omits required scope or conditions Chunk lacks parent heading or date Content engineer
Generation error Evidence correct, summary wrong Prompt, instruction, or model behavior Application owner

Score each question twice. First, did the correct passage appear in the retrieved context? Second, did the answer faithfully reflect that passage?

Also compare answers with an independently approved reference for correctness, completeness, current applicability, citations, and appropriate refusal when evidence is missing. Use human review to calibrate automated judging and repeat the same test set before and after changes.

For broader testing discipline, Air Academy Associates discusses software development best practices, including requirements and defect prevention.

Measurement only helps when someone acts on it, which brings us to ownership.

Assigning Owners for Corrective Action on Stale Procedures

Defects without owners become a backlog nobody touches. Assign ownership at the defect class level, then at the document level. Keep the list short enough that people remember their role.

  1. Name a corpus steward. This person approves what enters the production index and what gets retired, and reviews authority tags at a risk-appropriate interval.
  2. Assign document owners by process, not by department. The person who owns the procedure owns its text, since they notice changes first.
  3. Give engineering the retrieval defects. Chunk sizing, metadata fields, and parser behavior belong with the team that controls the pipeline.
  4. Route generation errors to the application owner. Test prompt or model changes when adequate evidence is present, while source corrections continue where needed.
  5. Set a correction service level. Set response and resolution targets by risk, and immediately restrict affected answers when continued use could cause harm.
  6. Review the evaluation set regularly. Add new questions as processes change, and retire questions that no longer reflect real usage.

Document who approves a correction, who updates the index, and who verifies the result. This makes accountability clear across content and engineering teams.

Several of our existing courses teach the analytical habits this work depends on.

AirAcad Resources for Applying Quality Methods to RAG Content

AirAcad Resources for Applying Quality Methods to RAG Content

These offerings focus on analytics and process improvement rather than RAG implementation. The applications below show how teams can adapt those methods to source-document quality.

Big Data and Predictive Analytics Short Course

This course covers predictive analytics concepts, classification trees, regression, diagnostics, and visualization. Teams can use that analytical foundation when interpreting evaluation results, while recognizing that RAG-specific metrics need separate study and validation.

Failure Mode and Effect Analysis (FMEA)

FMEA gives you a structured way to list failure modes, effects, causes, and controls, then prioritize action. Applied to content, the failure modes become stale procedures, duplicate revisions, conflicting policies, and context stripped by chunking.

  • Rate severity by the consequence of a wrong answer.
  • Rate occurrence by the likelihood of the failure or its cause, not simply source retrieval frequency.
  • Rate detection by how reliably existing controls identify the defect before use; citations are only one possible control.

The University of Cambridge's guidance on FMEA risk ratings distinguishes severity, occurrence, and detection. Adapt rating criteria to the workflow and document the evidence behind each score.

PF/CE/CNX/SOP

The PF/CE/CNX/SOP process improvement short course covers process flow mapping, cause and effect analysis, control/noise/experimentation classification, and standard operating procedures. For knowledge base governance, mapping can clarify who creates, approves, and updates each document. Your team can use these methods to develop standard work for publishing and retiring sources.

Lean Six Sigma Green Belt Online Course

Our self-paced Green Belt course teaches DMAIC and includes exam and project-review costs in the listed package. A content team could use that structure to define document defects, measure baseline answer accuracy, analyze causes, improve the corpus, and establish ongoing controls.

Teams seeking help with project scope and improvement methods can explore one-to-one process improvement coaching and discuss their needs with our team.

Closing Thought

Clean the documents, name the owners, and measure retrieval and generation separately to identify whether corrections improve answers. Talk with our team about building that discipline into your organization.

Build your team's process-improvement skills with Air Academy Associates. Talk with us about Lean Six Sigma training and quality methods that can support your document-governance work.

FAQs

How Does Source-Document Quality Affect RAG Answers?

RAG supplies retrieved information to a language model, but does not guarantee that its answer stays within that evidence. Unclear, outdated, or contradictory sources can undermine answers, so evaluate source validity alongside retrieval and generation quality. Microsoft's RAG architecture and evaluation guidance explains the stages that need assessment.

How Should Outdated and Conflicting Procedures Be Detected?

Use a structured audit: inventory all procedures, map them to process owners, and compare versions for conflicts and gaps. Then apply objective checks—effective date and revision control, cross-reference consistency (forms, systems, and roles), duplicate detection, and SME validation—followed by a single "source of truth" policy and a retirement workflow for superseded documents.

Which Checks Should Precede Prompt Tuning in a RAG System?

Check document ownership, revisions, content clarity, chunk context, retrieval coverage, and a representative evaluation set. Prioritize the defects the evidence reveals; prompt improvements can proceed alongside source corrections when generation errors are demonstrated.

When comparing configurations, plan the factors and outcomes in advance; our discussion of the use of DOE provides background on structured experimentation.

Related Articles

Posted by
Air Academy Associates
Air Academy Associates is a leader in Six Sigma training and certification. Since the beginning of Six Sigma, we’ve played a role and trained the first Black Belts from Motorola. Our proven and powerful curriculum uses a “Keep It Simple Statistically” (KISS) approach. KISS means more power, not less. We develop Lean Six Sigma methodology practitioners who can use the tools and techniques to drive improvement and rapidly deliver business results.

How can we help you?

Name

— or Call us at —

1-800-748-1277

contact us for group pricing