演習 › 全問
問題 Q3-17
55 / 120分野3・検索アーキテクチャの選択
まだ解いていません。
検索で、契約書の断片が、「第3条により、本件は免責される」のように、どの契約かが分からない形で保存されている。そのため、別の契約の同じ文言と区別できず、取り違えが起きる。最も適切な直し方はどれか。
正解は C
- A短くすると、さらに文脈が失われ、取り違えが増えます。
- B事後の確認だけでは、取り違えそのものを減らせません。
- C正解です。断片に、出どころの説明を前置きして、埋め込みと索引を作ると、断片だけでは失われる文脈を補えます。
- D件数を増やすと、入力が増え、遅延と費用が悪化します。
考え方:断片の文脈の欠落は、説明の前置きで直す。
出典:Introducing Contextual Retrieval
Contextual Retrieval solves this problem by prepending chunk-specific explanatory context to each chunk before embeddinghttps://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)