Skip to content
All topics

Retrieval, search & RAG

Lexical and semantic retrieval — BM25, embeddings, vector indexes, distance metrics, Elasticsearch, hybrid search, and the RAG pipeline around them.

Questions I use to pressure-test how retrieval actually works underneath a RAG system — what BM25 is computing, what a semantic vector is and which distances are meaningful on it, how ANN indexes trade accuracy for speed, and how lexical and dense retrieval get fused.

Overlaps deliberately with the LLMs topic’s Context subtopic (which covers what happens once retrieved text is in the prompt); this topic is the retrieval layer itself.

Subtopics