AI engineering glossary · RAG vector search

What is sparse retrieval?

Sparse retrieval: Retrieval based on sparse term-weight vectors, where most entries are zero and each nonzero entry stands for a word or subword. Classic examples use inverted indexes with BM25; learned sparse models also exist. It excels at exact terms and rare names.

Level: intermediateTopic: RAG vector search

Sparse retrieval: an example

A search for the error code 'ERR_4031' finds the one page containing that exact string.

Related terms

More RAG vector search terms

Where you learn it

Sparse retrieval is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.