All jobs / AI engineer / RAG — Retrieval-Augmented Generation

AI engineer interview question · 0–1 years

Why do we split documents into chunks before embedding them, instead of making one vector per document?

The strongest answer

One vector for a long document blurs many topics, so specific questions match it poorly, and what we retrieve has to fit the prompt and be citable. Too small, though, and a chunk loses its meaning

Why it works

Exactly — a chunk should be about one thing: small enough to retrieve precisely, large enough to stand on its own. That tension is the whole craft.

What a good answer covers

Answers that fall short

Who gets asked this

More RAG — Retrieval-Augmented Generation questions