QA extractivo frente a generativo
Dos formas de responder una pregunta
QA extractivo frente a generativo es una lección gratuita de NLP Academy en CoddyKit. Esta es la lección 1 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de NLP Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de NLP Academy incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
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. 🎯
Preguntas frecuentes
¿La lección «QA extractivo frente a generativo» es gratis?
Sí — el texto completo de «QA extractivo frente a generativo» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de NLP Academy, actualiza a CoddyKit PRO. El curso de NLP Academy incluye 4 lecciones en total.
¿Qué aprenderé en «QA extractivo frente a generativo»?
Dos formas de responder una pregunta Practicas NLP Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar NLP Academy?
No se requiere experiencia previa. NLP Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 1 de 4.
¿Cuánto tiempo toma la lección «QA extractivo frente a generativo»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de NLP Academy?
Sí. Cada lección de NLP Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- QA extractivo frente a generativo
- Ejecución de una canalización de QA
- Búsqueda de fragmentos de respuesta en el contexto
- Gestión de documentos largos y sin respuesta