Retrieval can only return what chunking created. If a chunk splits a rule from its exception, the model sees half the truth.
Common approaches
- Fixed size with overlap: simple and a fine baseline. Overlap preserves context across boundaries.
- Structural: split by headings, sections, FAQ items or clauses. Usually better for manuals, policies and contracts.
- Semantic: split where topic shifts, using embeddings or models. More work, helpful for unstructured text.
Practical guidance
- Start with structure-aware chunks sized to a coherent idea, then tune size using retrieval tests, not guesswork.
- Attach metadata: document title, section, date, version, product and permissions. Metadata powers filtering and access control.
- Keep tables and lists intact or convert them to readable text.
- Add the section heading to each chunk so it carries its context.
Test chunk quality
Build questions with known source passages and measure whether retrieval returns them; see RAG evaluation metrics. Combine with hybrid search for exact terms.
Maintain
Re-chunk when documents change and remove stale versions. Our RAG development service includes ingestion and refresh pipelines.
Frequently asked questions
What is chunking in RAG?
Splitting documents into passages that can be embedded, indexed and retrieved to give a model relevant context.
What is the best chunk size for RAG?
There is no universal size. Start with coherent, structure-based chunks and tune using retrieval tests on your own questions.
Why add metadata to chunks?
Metadata enables filtering, citations, version control and permission checks.
Related: RAG development · RAG vs fine-tuning · What is RAG
Want a straight answer for your project?
Book a 30-minute call. I will tell you what I would do, and a fixed price if it makes sense.