RetrievalGate

Intent: chunk size and document boundaries

Find chunk boundaries that keep the answer retrievable.

There is no universal chunk size that fits every corpus. Test how your own manuals, tables and procedures behave when the evidence is split, overlapped and indexed differently.

01

Why boundaries matter

A short chunk may isolate a useful identifier while losing the explanation around it. A long chunk may preserve context but dilute the signal that retrieval needs. Structural chunking tries to respect headings and paragraphs, which only helps when the extracted document structure is meaningful.

02

Four bounded candidates

The full audit compares fixed strategies targeting roughly 400, 800 and 1200 tokens, plus structural chunks targeting roughly 700. Fixed strategies include overlap. Sizes are approximate estimates rather than provider-tokenizer counts. This bounded matrix is a practical experiment, not an exhaustive search over every splitter.

03

Use sources that can actually be judged

For real queries, point relevant_id at the intended document or a specific CSV row/JSON item. For synthetic questions, the engine anchors relevance to the source passage. Broad document-level labels are easier to satisfy and can hide a poorly selected passage, so use precise labels where your source format allows them.

04

Read the matrix, then the regressions

Compare Recall@5, MRR and nDCG across configurations and inspect individual failures. If small chunks improve exact queries but hurt longer procedural questions, the segment report makes that trade-off visible. Do not infer a universal winner from a tiny or unrepresentative corpus.

05

Plan re-indexing as part of the decision

Changing chunk boundaries requires rebuilding embeddings and the retrieval index. The full report estimates embedding spend and raw vector storage from the corpus and candidate dimensions. These estimates omit database overhead, metadata, generation, reranking and negotiated pricing; use them to size the change, then check your infrastructure bill.

Before you run

Questions about this workflow

Does the free snapshot compare all chunk sizes?

No. The free snapshot uses approximately 800-token chunks. The full audit evaluates all four supported chunking strategies.

Does structural chunking support scanned PDFs?

The engine extracts embedded PDF text. It does not perform OCR. Convert scanned documents to reliable text before benchmarking.

Keep exploring

Make the retrieval decision

Stop guessing. Test the fixes before you ship.

Start with a free snapshot on your own corpus. No SDK, production access or vector database credentials required.