Skip to main content
Intermediatecomparison Verified ~7 min

How do you choose chunk size and overlap?

Source: Anthropic: Building effective agents

Quick answerFree

Chunks too large dilute the embedding and waste prompt space; too small lose the context needed to understand them. Start from the document structure: split runbooks by heading, SQL by statement, tables by row groups, then cap the size and add a small overlap so a sentence cut at a boundary still appears whole.

Detailed answer· ~230 words

Interview Prep

Unlock the full answer with Interview Prep

Get a ~230-word model answer, 5 key points, a visual explainer, 5 common mistakes and 5 follow-ups, plus 24 more Generative AI questions.

Also in Pro (₹499 / 90 days).

Key points· 5 points

Interview Prep
Unlock with Interview Prep

Visual explainer· animated, step by step

Interview Prep
Unlock with Interview Prep

Common mistakes· 5

Interview Prep
Locked

Best practices· 5

Interview Prep
Locked

Likely follow-ups· 5 questions

Interview Prep
Unlock with Interview Prep

+ 24 more Generative AI questions in Interview Prep, each with the full answer.

Discussion