抽出型 QA と生成型 QA
質問に答える 2 つの方法
「抽出型 QA と生成型 QA」はCoddyKit上の無料NLP Academyレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはNLP Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 NLP Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
What Question Answering Means
Question answering, or QA, is the task of returning a precise answer to a natural-language question instead of a list of links. You ask, the system answers. 💬
Two Big Families
QA systems split into two families. Extractive QA pulls the answer straight out of a given passage, word for word.
Generative QA
The other family is generative QA. Instead of copying text, the model writes a fresh answer in its own words, possibly combining several facts.
Extractive Needs a Context
Extractive QA always works against a context passage you provide. The answer must be a span that already exists inside that text.
context = "Marie Curie was born in Warsaw in 1867."
question = "Where was Marie Curie born?"The Answer Is a Span
In extractive QA the output is a span: a start and end position in the context. Here the span is simply the word Warsaw.
Generative Can Go Beyond
A generative model is not limited to the passage. It can summarize, rephrase, or answer from knowledge baked in during training. ✨
Trust and Traceability
Extractive answers are easy to trust: you can point to the exact text they came from. Generative answers are flexible but harder to verify.
The Risk of Hallucination
Because generative models invent wording, they can hallucinate facts that sound right but are false. Extractive QA cannot do that.
When to Pick Extractive
Choose extractive QA when answers live inside trusted documents and you need exact, auditable quotes, like legal or medical text.
When to Pick Generative
Choose generative QA when you need fluent, combined answers or want to respond even when no single passage holds the full reply.
This Course Starts Extractive
We begin with extractive QA because it is concrete and easy to evaluate. You will load a passage and pull the exact answer from it.
Quick Check
Test your grasp of the two QA families.
Recap
QA returns precise answers. Extractive copies an exact span from a context; generative writes new text. Extractive is auditable and where we start. 🎯
よくある質問
「抽出型 QA と生成型 QA」レッスンは無料ですか?
はい。「抽出型 QA と生成型 QA」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、NLP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 NLP Academyコースには全4レッスンが含まれています。
「抽出型 QA と生成型 QA」で何を学びますか?
質問に答える 2 つの方法 ブラウザで直接実行するハンズオンコードでNLP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
NLP Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのNLP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。
「抽出型 QA と生成型 QA」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このNLP Academyレッスンでコードを書いて実行できますか?
はい。すべてのNLP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- 抽出型 QA と生成型 QA
- QA パイプラインを実行する
- 文脈内で回答スパンを見つける
- 回答なしと長い文書に対応する