検証: RAGのハルシネーションは「スキーマ問題」なのか?検証
00:01:06 ・ source: https://zenn.dev/mskbhd/articles/lab-086-rag-note
Transcript
hostenToday we examine whether RAG hallucinations are really a schema problem.
guestja今日は、RAGのハルシネーションが本当に「スキーマの問題」なのかを検証していきます。
hostenThe author tested two approaches: free text versus structured JSON output.
guestja著者は、自由テキスト出力とJSONスキーマを強制した出力の2つの方法をテストしました。
hostenSurprisingly, both conditions showed zero hallucinations in most cases.
guestja驚くべきことに、どちらの条件でもほぼ全てのケースでハルシネーションが0%でした。
hostenHowever, JSON schema created pressure to fill fields, leading to stretched answers.
guestjaしかし、JSONスキーマは各フィールドを埋めたいという暗黙のプレッシャーを生み、無理矢理な回答につながる傾向が見られました。
hostenThe real benefit of structured output is not reducing hallucinations, but improving verifiability.
guestja構造化出力の本当の利点は、ハルシネーション自体を減らすことではなく、検証可能性を向上させることなのです。
hostenWith citations and confidence scores, you can detect and catch errors more easily.
guestja引用情報と信頼度スコアがあれば、ハルシネーションが発生したときに発見しやすくなります。