Explain it in 60 seconds
Adding context to chunks before embedding
Machine Learning · RAG · Intermediate
Why add document context to chunks before embedding them, and how?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Isolated chunks lose meaning ("the company's revenue grew 3 percent" — which company, which year?).
- Prepend document title, section headings, or an LLM-generated context summary.
- Improves embedding and keyword retrieval.
- Contextual retrieval approaches generate a short context per chunk.
- Extra indexing cost, usually worth it.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.