Question Answering & RAG
Retrieve the evidence first, then answer from it
What this capability means
Takes a question and returns an answer. It has two forms: closed-book, answering from parameters alone, and open-book, retrieving relevant passages from an external corpus first. Retrieval-augmented generation belongs to the latter, keeping knowledge in an updatable external store and usually attaching citations. It differs from free generation by having an explicit question and a verifiable target answer.
How it is done
A RAG pipeline chunks documents into vectors in an index, encodes the question the same way and takes nearest neighbours, then pastes the retrieved passages with the question into a prompt so the model can answer with citations. Refinements include hybrid dense-plus-sparse retrieval, query rewriting before retrieval, and a reranker to pick the best passages. Closed-book answering relies purely on knowledge compressed during pre-training.
Representative products
14Organizations involved
Typical uses
- Enterprise knowledge bases and internal Q&A
- Web-search assistants with citations
- Document and contract interrogation
- Support and technical self-service
How it is evaluated
- Exact Match
- Share of answers identical to the reference
- Answer F1
- Token overlap with the reference, allowing partial credit
- Retrieval hit rate and citation accuracy
- Whether evidence was retrieved and citations actually support the claim
Limits and hard parts
- When the right passage is not retrieved, the model still answers confidently — hallucination in disguise
- Multi-hop questions needing several documents break, answering only one link
- Key evidence in the middle of a long context is the most likely to be ignored
Concepts behind it
AI Engineering, Safety & Ethics
Retrieval-Augmented GenerationBeginner
Rather than cramming knowledge into parameters, leave it outside and look it up on demand — an open-book exam instead of a closed-book one
NLP & Large Language Models
Attention MechanismIntermediate
Every position can look directly at every other position and dynamically weight how much attention to pay
NLP & Large Language Models
Prompting & AlignmentExpert
Making a model helpful, honest and harmless is harder than simply making it bigger