Standard 1 stop to get here

Information Retrieval

The field of finding the documents in a large collection that satisfy a person's information need, and ranking them by how relevant they are.

Your route here

1 stop · basics first
  1. Natural Language Processing ✓ understood

    The field of AI that lets computers read, interpret, translate and generate human language, from spam filters and search to chatbots.

  2. Information Retrieval · you are here ✓ understood

Picture it

  1. 01 Index the collection Done once, ahead of time
  2. 02 Query The user's words or question
  3. 03 Retrieve candidates Keyword match, vectors, or both
  4. 04 Rank Most relevant first
Search engines, RAG pipelines and help-desk bots all run this loop; they differ mainly in how they index and how they score relevance.

Information retrieval (IR) is the science behind search. The standard textbook definition, from Manning, Raghavan and Schütze, is finding material, usually text documents, that satisfies an information need from within a large collection. Web search engines are the best-known example, but the same machinery runs inside email search, legal discovery, code search and, increasingly, the retrieval step of retrieval-augmented generation.

How it works

An IR system prepares an index ahead of time so it never has to read the whole collection per query. Classic systems build an inverted index, a map from each word to the documents containing it. At query time the system pulls candidate documents and ranks them by estimated relevance.

  • Sparse (lexical) retrieval scores documents by the words they share with the query, weighted so rare, telling words count more. TF-IDF and its refinement BM25 have been the workhorses for decades.
  • Dense retrieval encodes queries and documents as embeddings and ranks by vector similarity, which finds matches that share meaning but not words. This is what people usually mean by semantic search, and it is typically served from a vector database.

Karpukhin et al. found that the two fail differently: term matching is sensitive to highly selective keywords, while dense retrieval better captures related wording. Many production systems combine both, then re-rank the top results with a slower, more accurate model.

Measuring it

Retrieval quality is measured with ranked-list metrics built from precision and recall: of what came back, how much was relevant, and of what was relevant, how much came back, with extra credit for putting the best results first.

Where it sits

Information Retrieval

Leads to

Nothing yet: a destination in its own right.

Explore nearby

Sources

  1. Christopher D. Manning, Prabhakar Raghavan and Hinrich Schütze, Introduction to Information Retrieval . Cambridge University Press, 2008
  2. Vladimir Karpukhin et al., "Dense Passage Retrieval for Open-Domain Question Answering" . EMNLP 2020