interviewleafBack to bookshop →
FREE GENAI NEWSLETTER

Understand AI, one concept at a time.

Simple explanations. Clear diagrams. Questions that help you prepare for your next interview.

Learn how language models, RAG, AI agents and other GenAI concepts work, in easy-to-understand English. Each email teaches a concept with an illustration, and includes InterviewLeaf ebook recommendations or offers.

A taste of what you’ll learn

How does RAG help an AI answer from your documents?

Imagine asking an assistant about your company’s leave policy. A language model may not know your company’s rules. With retrieval-augmented generation (RAG), the app first finds relevant passages in your documents and gives them to the model along with your question.

The model uses those passages to write an answer. This helps it work with information outside its training data, but the answer still needs checking: the search may find the wrong passage, or the model may misunderstand it.

Published by InterviewLeaf. Questions? Write to books@interviewleaf.com.