What metadata would you attach to each chunk, and what does it buy you?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Chunk metadata is what turns a pile of vectors into a system you can filter, debug and operate. I would attach four categories.
Full worked answer
Chunk metadata is what turns a pile of vectors into a system you can filter, debug and operate. I would attach four categories.
Provenance, for citation and trust: source document ID, stable URI, page or section anchor, document title, heading path, and the exact character offsets in the source. Offsets are what let you highlight the supporting span in the UI rather than pointing vaguely at a document.
Access control: tenant ID, ACL groups, sensitivity label. These must be filterable at query time, because permissions are enforced in the retrieval filter, never by the model.
Temporal and lifecycle: created and last-modified timestamps, effective and expiry dates for policy documents, version number, and a superseded-by pointer. This is what lets you answer 'what is the current policy' instead of surfacing a 2019 draft.
Pipeline lineage: embedding model name and version, parser version, chunker version, content hash. This is the one people forget and regret. When you migrate embedding models, the model version on the chunk is what lets you detect mixed-space contamination, and asserting that the stored model matches the query model turns a silent quality collapse into a loud error. The content hash gives you cheap dedup and cheap incremental reindexing.
For typed corpora, add domain fields: doc_type, product_version, language, author, status.
Two cautions. Metadata is not free: high-cardinality filters interact badly with ANN indexes, so design filters you will actually use. And some metadata belongs in the embedded text, not just beside it. Embedding the heading path with the chunk usually improves retrieval more than storing it as an unsearched field.
What a good answer covers
- Chunk metadata is what turns a pile of vectors into a system you can filter, debug and operate
- Provenance, for citation and trust
- Offsets are what let you highlight the supporting span in the UI rather than pointing vaguely at a document
- Access control: tenant ID, ACL groups, sensitivity label
- These must be filterable at query time, because permissions are enforced in the retrieval filter, never…
Key terms: Provenance · Access control · Temporal and lifecycle · Pipeline lineage
In the glossary: Contamination · ANN
Interviewer follow-ups to expect
Which of these fields would you embed into the chunk text versus keep as a filterable field, and why?
How does storing the embedding model version help you during a model migration?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep