Your RAG bot answers vaguely.
You split docs into fixed 4000-character chunks, cutting sentences and tables mid-way.
- AMake the chunks even bigger so nothing gets cut
- BChunk on semantic boundaries (sections, paragraphs) with a little overlap
- CSwitch to a bigger embedding model
- DKeep the fixed 4000-character chunks but retrieve three times as many per query, so the pieces of a cut table all land in context
Answer: B
Chunk on semantic boundaries (sections, paragraphs) with a little overlap
Why
Fixed-size cuts split ideas across chunks, so no single chunk holds a complete thought. Chunking on natural boundaries keeps each unit coherent - the real fix, not a bigger model or more chunks.
- RAGTo improve answers you bump retrieval from top-3 to top-30 chunks.
- RAGA user asks your RAG assistant "how many open tickets do I have right now?" It retrieves stale doc snippets and guesses a number.
- RAGRetrieval returns a document that is accurate - for last year’s pricing.
- RAGYour policy assistant answers from company documents.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path