AI Terminology
/Intermediate
Retrieval
Definition
The 'R' in RAG. The computational process of taking a user's query and rapidly searching through a vast corpus of external documents to find the top 'K' most semantically relevant pieces of text.
Explain Like I'm New
The search engine part of the AI. Before the AI is allowed to speak, the Retrieval system digs through thousands of company files and pulls out the 3 files that are most likely to contain the answer.
Real World Example
User asks: 'How do I reset my router?' The Retrieval system searches the documentation database and retrieves paragraphs 14, 52, and 88, passing them to the LLM.
Common Use Cases
- •Search indexing
- •Context gathering
Interview Questions
basic
- If the Retrieval step fails to find the right document, can the LLM still generate the correct answer in a strict RAG system?
intermediate
- What is the difference between Keyword Search (BM25) and Semantic Search in Retrieval?