Zenaique
Part ofRAG Engineer·Week 2: Chunking & RetrievalView roadmap →

Which of these are valid considerations when choosing a chunking strategy for RAG?

Multi-select·Medium·4.4 · 87·~1 min·Asked atAi21CoinbaseDataiku·Relevant atAmazonElasticNeo4jQdrant
Attempt it
TL;DR

Semantic boundaries, downstream context size, and embedding latency are real chunking decisions. The LLM tokenizer's scheme and vocabulary size are not chunking concerns at all.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Picture cutting a long book into bookmarks for a librarian who only ever reads the bookmarked passages. You care about where you cut, ideally between chapters so each bookmark is a coherent thought. You care about how big each cut is, since the librarian can only hold a few at a time. You care about how long it takes to bookmark every page, since you might have a million pages. You do not care which font the printer used to typeset the words. The font is the tokenizer. It matters when the words get read out loud later, but it does not change where you should cut the book.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Chunking is the unglamorous decision that sets the ceiling on RAG quality. The retriever cannot fix bad chunks, and the LLM cannot reason over fragments. A team that gets chunking right unlocks gains the rest of the pipeline cannot deliver on its own.

This question asks you to separate real chunking tradeoffs from distractors that sound plausible because they involve text and tokens, but operate at a different layer entirely. Each of the three correct options ties to a real axis of the design space. Each of the two distractors confuses chunking with downstream tokenisation.

Why semantic boundaries are a real concern

Embeddings describe what a chunk is about. A chunk that contains one coherent thought produces an embedding concentrated in the right region of semantic space. A chunk that cuts across two unrelated thoughts produces an embedding that averages between them, which lowers precision because it neither matches one topic strongly nor stands clear of the other.

Fixed-size splitters that respect natural boundaries, like markdown headers, paragraphs, or sentence breaks, recover most of this lift without much complexity. Semantic chunking, which splits where adjacent-sentence similarity drops below a threshold, recovers more but at the cost of computing similarities during ingestion.

The tradeoff is between splitter complexity and retrieval precision. For homogeneous, well-structured corpora the marginal gain from semantic chunking is small. For mixed, heterogeneous content like long reports and articles with embedded code, semantic methods often pay back their cost in measurably better top-k recall.

Why context size matters downstream
Why embedding latency is a production tradeoff
Why the distractors are not chunking concerns
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • LangChain's `RecursiveCharacterTextSplitter` is a popular default that respects markdown and paragraph boundaries while honouring a target size, hitting axes A and B simultaneously.
  • LlamaIndex's `SemanticSplitterNodeParser` splits on embedding-similarity drops between adjacent sentences, directly optimising for semantic boundaries.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you decide between fixed-size and semantic chunking for a corpus of regulatory filings?
A

Run both with the same retriever and LLM on a labelled eval set, measure top-k recall and answer quality, and pick by the metric the product actually cares about. Regulatory filings have strong structural cues like sections and item numbers, which tend to favour structure-aware splitters.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Treating tokenizer details as chunking concerns. Chunks are stored as text or pre-embedded vectors. The downstream model retokenises whatever context wins the retrieval, so the tokenizer choice does not shape chunk design.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Identify the three real chunking concerns and explain each in one sentence.

  • Explain why downstream LLM tokenizer details do not feed back into chunking decisions.

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Which metric best measures whether a RAG answer is grounded in the retrieved context?
MCQ·Medium