演習 › 全問
問題 Q3-15
53 / 120分野3・検索アーキテクチャの選択
まだ解いていません。
数百万トークンの技術文書の検索で、「エラー TS-999」のような識別子を含む質問に、関係する断片が上位に出ない。意味の近さだけで検索している。最も適切な改善はどれか。
正解は B
- A意味の近さだけでは、識別子のような正確な語句の一致を拾いにくい問題が、残ります。
- B正解です。語の一致による検索は、正確な語句を拾います。文脈の前置きと再ランキングで、失敗が大きく減ります。
- C短すぎる断片は、文脈を失い、検索の失敗が増えます。
- D数百万トークンは、文脈に入りません。
考え方:識別子のような語句は、語の一致の検索を併用する。
出典: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)
出典: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)