Incomplete Context Assembly

The Problem

Retrieved chunks provide partial information, missing critical details needed for complete answers, causing fragmented or misleading responses.

Symptoms

  • ❌ Answer covers part of topic, omits key info

  • ❌ Multi-step procedures incomplete

  • ❌ Missing prerequisites or warnings

  • ❌ Important context cut off mid-explanation

  • ❌ Users must ask follow-up for basics

Real-World Example

Documentation procedure (full):
1. Backup your data (CRITICAL)
2. Run migration script
3. Verify results
4. Restore if errors occur

Retrieved chunks:
→ Chunk 1: "Run migration script: npm run migrate"
→ Chunk 2: "Verify with: npm run verify"

Missing: Step 1 (backup) and Step 4 (restore)

AI response: "Run npm run migrate then npm run verify"

User runs it → Data loss (no backup step)

Deep Technical Analysis

Chunking Boundary Issues

Procedure Split Across Chunks:

Context Window Limitations:

Retrieval K Tuning

Too Few Chunks:

Optimal K:

Hierarchical Information

Parent-Child Relationships:

Context Expansion:


How to Solve

Increase retrieval K (test 10-20 chunks) + implement context expansion (retrieve parent sections) + use hierarchical chunking with parent-child links + apply reranking to surface most complete chunks + adjust chunk size to capture complete procedures + use sliding window overlap (10-15%) to avoid boundary splits. See Context Completeness.

Last updated