Claude認定 対策ノート

講座 › 分野3 統合

3.5 検索アーキテクチャの選択

配点 3.2%Retrieval Architecture Selection

資料の性質、問い合わせの型、遅延と費用の上限から、検索の構成を選ぶ。索引を選ぶなら、文脈付きの検索と、代替の構成を詰める。

未読

三つの構成:全文を入れる、索引を作る、エージェントが探す

図解:三つの構成:全文を入れる、索引を作る、エージェントが探す

選ぶ候補は、構築済みの検索パイプライン、道具を使ってエージェントが探す方法、資料全体を文脈に入れる方法の三つです。知識のまとまりが、20万トークン(約500ページ)より小さいなら、全体をプロンプトに入れて、検索の仕組みを使わなくて済みます。

出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Selecting among retrieval architectures (pre-built RAG pipeline, agentic search with tools, full-corpus context) based on corpus characteristics, query pattern, and latency and cost limits, and, when indexing is chosen, specifying the contextual-retrieval and fallback configuration that maximizes retrieval quality within those limits.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
出典:Introducing Contextual Retrieval
If your knowledge base is smaller than 200,000 tokens (about 500 pages of material), you can just include the entire knowledge base in the prompt that you give the model, with no need for RAG or similar methods.
https://www.anthropic.com/research/contextual-retrieval(取得 2026-11-23)

索引を作るなら、文脈付きの検索

図解:索引を作るなら、文脈付きの検索

資料を断片に分けると、断片だけでは文脈が失われます。文脈付きの検索は、各断片に、その断片の説明を前置きしてから、埋め込みと、語の一致による索引を作ります。前置きの文は、通常50〜100トークンです。語の一致による検索は、正確な語句の一致を拾います。

出典:Introducing Contextual Retrieval
Contextual Retrieval solves this problem by prepending chunk-specific explanatory context to each chunk before embedding
https://www.anthropic.com/research/contextual-retrieval(取得 2026-11-23)
出典:Introducing Contextual Retrieval
The resulting contextual text, usually 50-100 tokens, is prepended to the chunk before embedding it and before creating the BM25 index.
https://www.anthropic.com/research/contextual-retrieval(取得 2026-11-23)
出典:Introducing Contextual Retrieval
BM25 (Best Matching 25) is a ranking function that uses lexical matching to find precise word or phrase matches.
https://www.anthropic.com/research/contextual-retrieval(取得 2026-11-23)

効果と、探索型の手段

図解:効果と、探索型の手段

文脈付きの埋め込みと語の一致を合わせると、上位20件での検索の失敗が49パーセント減り、再ランキングを加えると67パーセント減りました。一方、事前に全部を用意せず、軽い識別子から必要な時に読み込む、探索型の方法もあります。引用が要る場合は、検索結果の形で渡すと、出典つきで答えられます。

出典:Introducing Contextual Retrieval
Combining Contextual Embeddings and Contextual BM25 reduced the top-20-chunk retrieval failure rate by 49% (5.7% → 2.9%).
https://www.anthropic.com/research/contextual-retrieval(取得 2026-11-23)
出典:Introducing Contextual Retrieval
Specifically, we found that Reranked Contextual Embedding and Contextual BM25 reduced the top-20-chunk retrieval failure rate by 67% (5.7% → 1.9%).
https://www.anthropic.com/research/contextual-retrieval(取得 2026-11-23)
出典:Effective context engineering for AI agents
Rather than pre-processing all relevant data up front, agents built with the “just in time” approach maintain lightweight identifiers
https://www.anthropic.com/research/effective-context-engineering-for-a…(取得 2026-11-23)
出典:Search results
Search result content blocks let Claude cite your own content the same way it cites web search results
https://platform.claude.com/docs/en/build-with-claude/search-results.m…(取得 2026-11-23)
試験のポイント