AI Terminology
/Intermediate
What is RAG?
Definition
Retrieval-Augmented Generation. An AI architecture that enhances a Large Language Model by querying an external database to retrieve factual, up-to-date information, and injecting it into the prompt before generating an answer.
Explain Like I'm New
An open-book test. Instead of forcing the AI to answer from memory (which causes hallucinations), RAG allows the AI to search a private library, read the correct document, and summarize the answer for you.
Real World Example
Building an AI chatbot for your company. ChatGPT doesn't know your company's HR policies. RAG searches your private PDF of the Employee Handbook, finds the section on 'Vacation Days', and feeds that exact paragraph to ChatGPT to generate a perfect answer.
Common Use Cases
- •Enterprise search
- •Customer support bots
- •Fact-checking
Interview Questions
basic
- What does RAG stand for?
intermediate
- Why is RAG almost always a better choice than 'Fine-Tuning' for teaching an AI new facts?