passdrill
AI & LLM Engineering · RAG & Embeddings · Card 003/012 easy

An embedding model converts each passage of text into a fixed-length vector of numbers such that passages with related meaning end up close together in that vector space, even when they don't share any of the same words. Which retrieval technique exploits this property to find passages relevant to a user's query?

  1. Exact string matching between the characters of the query and the characters of the document text
  2. Regular-expression pattern matching against a fixed set of predefined query templates
  3. Nearest-neighbor search, which embeds the query with the same embedding model and retrieves the passages whose vectors are closest to the query's vector
  4. Sorting every document by its publication date and returning the most recently added ones, regardless of their content
Next card → Shuffle