Repeated text dominates top-k
Detect: Most hits cover the same source range.
Recover: Deduplicate by offsets and increase evidence diversity.
Tune shared text between neighboring chunks to preserve boundary evidence without filling retrieval results with duplicates.
Chunk overlap repeats some source content across adjacent retrieval units so facts spanning a boundary remain recoverable. It is a hedge against imperfect segmentation, especially when paragraphs, definitions, or procedure steps extend across a fixed-size cut. Overlap is not a universal percentage: the right amount depends on document structure, tokenizer behavior, and retrieval tasks.
More overlap increases embedding and storage work and can make top results redundant. It may also bias ranking toward repeated text or inflate apparent evidence counts. Evaluate overlap jointly with chunk size, structural boundaries, parent expansion, and deduplication rather than optimizing it in isolation.
A prototype tests several chunk-size and overlap pairs against questions whose answers cross boundaries.
Production uses source offsets, stable chunk IDs, and duplicate-aware evaluation to distinguish real coverage from repeated passages.
At scale, tune by document family, estimate re-indexing costs, and track how overlap affects context tokens and retrieval diversity.
Prefers paragraphs, headings, and table boundaries where available.
Defines token or structural overlap by document class.
Preserves document revision and exact source ranges.
Recognizes overlapping hits before context assembly.
Tests whether answers survive segmentation without excessive duplication.
flowchart LR
D["Structured source document"] --> S["Boundary-aware splitter"]
S --> A["Chunk A with shared tail"]
S --> B["Chunk B with shared head"]
A --> I["Vector index"]
B --> I
I --> R["Retrieved overlapping hits"]
R --> U["Merge source ranges"]
U --> C["Nonredundant evidence context"]Identify the units that carry meaning, including headings, tables, and list conditions.
Choose several chunk and overlap configurations within embedding limits.
Record source offsets and revision identity for every chunk.
Test questions requiring information on both sides of a proposed cut.
Count repeated source ranges in retrieved results and assembled context.
Choose the smallest evaluated overlap that preserves needed evidence and retain a migration plan.
Construction engineering · Illustrative enterprise scenario, not a reported customer outcome.
A project assistant searches technical specifications containing requirements followed by exceptions on the next paragraph.
Fixed chunk boundaries separate a material requirement from its installation condition.
Retrieve both parts while keeping duplicate specification text out of the answer context.
A structure-aware splitter uses limited overlap and source-range deduplication.
If a large table exceeds chunk limits, a dedicated table strategy preserves headers instead of relying on overlap alone.
Measure boundary-question accuracy, duplicated context ratio, and total index size; overlap should solve a demonstrated segmentation failure.
| Decision | Benefit | Cost |
|---|---|---|
| Larger overlap | Improves continuity near cuts. | Increases storage and duplicate retrieval. |
| Structural boundaries | Preserve meaningful units. | Require reliable parsing of varied formats. |
| Per-document policies | Fit different source styles. | Increase configuration and migration complexity. |
Detect: Most hits cover the same source range.
Recover: Deduplicate by offsets and increase evidence diversity.
Detect: Values retrieve without their column meanings.
Recover: Use table-aware chunking with repeated validated headers.
Tune against boundary-specific evaluation cases.
Count unique supporting source ranges.
Version the chunking policy and rebuild consistently.