Wrong Answers from RAG

The Problem

Retrieved context is relevant but AI generates factually incorrect answers, misinterprets the context, or combines information incorrectly.

Symptoms

  • ❌ Context has right info, answer is wrong

  • ❌ Misreads numbers, dates, names

  • ❌ Reverses cause and effect

  • ❌ Combines facts from different contexts incorrectly

  • ❌ Ignores critical qualifiers ("not", "except")

Real-World Example

Retrieved context:
"Enterprise plan costs $500/month. Basic plan costs $50/month."

User query: "How much is the basic plan?"

AI response: "The Basic plan costs $500 per month."

Problem: Confused Enterprise and Basic pricing
Context was correct, interpretation wrong

Deep Technical Analysis

Semantic Confusion

Similar Entity Names:

Negation Handling:

Context Assembly Issues

Conflicting Chunks:

Partial Context:

LLM Reasoning Errors

Multi-Hop Reasoning:

Quantitative Errors:


How to Solve

Implement reranking to surface most relevant context first + use chain-of-thought prompting for multi-step reasoning + add explicit negation handling in prompts + apply answer validation (fact-checking against context) + use higher-quality models (GPT-4 over GPT-3.5) for complex interpretation + test with eval set of tricky questions. See Answer Quality.

Last updated