RAG ingestion with per-chunk provenance
Table of Contents
Compress chunks at ingest with a receipt, and triage retrieval failures between retrieval and ingestion. For retrieval pipelines over large, changing corpora: compress each chunk at ingest time and store the receipt with the chunk. Every stored chunk carries: When a downstream answer is wrong, you can now triage: did retrieval miss the chunk, or did ingestion degrade the chunk that held the answer? The receipt pair answers the second question - re-run the source chunk (determinism makes the replay byte-identical) and compare against what is stored. Mode: What you get
integrity.raw_sha256 / integrity.output_sha256 - the byte pair linking the stored chunk to its source text.headline.ratio - how much was squeezed at ingest.quality.fidelity_score (verified mode) - measured retention for this chunk.Honest limits
extractive for volume, verified where the loss question matters.