Learn · RAG: chunking, embeddings & vector search · CCAR-F

Contextual retrieval and reranking

Prepend a short Claude-written context to every chunk, index it twice, then rerank 150 to 20. Anthropic measured 67% fewer failures.

Key ideas

Worked example: A chunk before and after contextualisation

The added line is what Claude generates. It makes the chunk findable by both meaning and keywords.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: RAG citations and evaluation