← Speech and Language Processing
NLP›Popular Textbooks› SLP · Chapter 11

Chapter 11

Information Retrieval and RAG: Find Evidence Before You Generate

Chapter: Information Retrieval and RAG, in Daniel Jurafsky and James H. Martin, Speech and Language Processing, 3rd edition draft, August 19, 2026.

Topics to learn

Page numbers refer to the linked chapter PDF.

FAQ

Can a perfect reranker repair a missing document?

No. It can only reorder what the first stage returned. If the relevant document was never a candidate, later ranking cannot create it.

Does a citation show that an answer is grounded?

No. The cited passage has to support the specific claim. A pointer is not the same as support.

Is a dense score of 1.04 more confident than a BM25 score of 0.92?

No. They come from different functions. Compare ranks and task metrics under one protocol, not the raw magnitudes.

What does an inverted index avoid?

Scoring every document for a query term that does not occur in it. It stores, for each term, the documents that contain it.