Tier One: Essential Reading from Anthropic

1. Anthropic: The Original Contextual Retrieval Article https://www.anthropic.com/news/contextual-retrieval

This is the original article that introduced Contextual Retrieval on Anthropic’s official blog. It explains the two underlying techniques—Contextual Embeddings and Contextual BM25—in detail. Together they can reduce retrieval failure rates by 49%, or by 67% when combined with reranking. The article also includes an important practical recommendation: if a knowledge base contains fewer than 200,000 tokens, roughly 500 pages, placing the entire knowledge base in the prompt may be preferable to using RAG. This is the foundation for understanding Contextual Retrieval, and nearly every later article refers back to it.

2. Anthropic: Context Engineering for Agents https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents

This in-depth 2025 Anthropic article discusses the shift from preprocessing-oriented retrieval toward “just-in-time” retrieval. Instead of retrieving all data in advance, an agent keeps lightweight identifiers such as file paths, queries, and links, then loads data into its context dynamically at runtime. It is a central reference for the Context Engineering part of this learning path.

Additional reading: Learn Claude Code https://learn-cc-agent.vercel.app/en/

This interactive learning site explains the core mechanisms of a Claude Code-style coding agent across twelve progressive chapters. Topics include the agent loop, tools, planning, subagents, skills, context compaction, tasks, background tasks, multi-agent collaboration, and worktree isolation. It is not a RAG tutorial, but it fits naturally into the Context Engineering thread by showing how context organization and management work inside a concrete agent runtime.

3. Anthropic Claude Cookbooks on GitHub https://github.com/anthropics/claude-cookbooks

This official code-example repository provides snippets and notebooks that can be copied and adapted directly. RAG-related notebooks include:

  • third_party/Pinecone/rag_using_pinecone.ipynb — RAG with Pinecone and Voyage AI
  • third_party/MongoDB/rag_using_mongodb.ipynb — RAG with MongoDB
  • Examples related to Contextual Embeddings

4. The New Claude Cookbook Website https://platform.claude.com/cookbook/

Anthropic’s newer Cookbook platform is more structured than the GitHub repository and includes complete sections on prompting, tool use, multimodal systems, and other topics.


Tier Two: High-Quality Implementation Guides

5. Together AI: How to Implement Contextual RAG from Anthropic https://docs.together.ai/docs/how-to-implement-contextual-rag-from-anthropic

This guide implements Anthropic’s Contextual Retrieval step by step using fully open-source models. It uses a small 1–3B model, such as Llama 3.2 3B, together with prompt caching to generate context for each chunk. It is a useful reference when implementing the approach by hand because it does not depend on the Claude API and shows the full reproduction workflow with open-source models.

6. LlamaIndex: Contextual Retrieval Cookbook https://docs.llamaindex.ai/en/stable/examples/cookbooks/contextual_retrieval/

This official LlamaIndex notebook creates chunk context with an Anthropic LLM, uses OpenAI embeddings and a CohereAI reranker, and compares retrieval results with and without contextual nodes. It is a good entry point if you later want to explore the LlamaIndex framework.

7. Milvus: Contextual Retrieval with Milvus https://milvus.io/docs/contextual_retrieval_with_milvus.md

This official Milvus guide demonstrates how to build a progressively enhanced retrieval system by combining dense-sparse hybrid retrieval with a reranker. It also offers a useful insight: Contextual Retrieval is fundamentally a form of document augmentation. Just as query rewriting adds information to a query, preprocessing documents with an LLM—cleaning them, restoring missing context, and summarizing them—can significantly improve retrieval quality.


Tier Three: A Broader View of RAG

8. RAGFlow: From RAG to Context — 2025 Year-End Review https://ragflow.io/blog/rag-review-2025-from-rag-to-context

This year-end review identifies a central tension: enterprises feel that they cannot do without RAG, yet remain dissatisfied with it. It surveys major changes in the RAG field during 2025, including practical tests of whether long context can replace RAG, the rise of Context Engineering as a distinct discipline, and the growing attention paid to memory systems. It is a strong overview of the wider industry landscape.

9. Evidently AI: A Complete Guide to RAG Evaluation https://www.evidentlyai.com/llm-guide/rag-evaluation

This systematic guide covers RAG evaluation in both development and production. It includes retrieval evaluation through ranking metrics and relevance scoring, generation evaluation through faithfulness and completeness, and methods for building evaluation datasets with synthetic data. These techniques become directly useful when working on a RAG evaluation module.

10. AWS: Writing Best Practices to Optimize RAG Applications https://docs.aws.amazon.com/prescriptive-guidance/latest/writing-best-practices-rag/introduction.html

This official AWS guide focuses on improving RAG performance at the source-document level. That perspective is unusual and practical: while most resources focus on retrieval algorithms, this guide asks how documents themselves should be written so that a RAG system can retrieve and use them more effectively.


For the current stage, I recommend this sequence:

  1. Anthropic’s original Contextual Retrieval article (#1) — establish the core concepts first
  2. Together AI’s open-source implementation (#5) — see how the ideas translate into code
  3. Anthropic’s Context Engineering for Agents (#2) — understand the larger picture
  4. RAGFlow’s 2025 year-end review (#8) — learn the industry’s trends and debates
  5. Evidently’s RAG evaluation guide (#9) — prepare for the later evaluation work

The first two are the most immediately useful. The final three can be read in depth when moving into hands-on RAG development.