Teaching LLMs to read the manual before answering
A notebook-and-video playlist that teaches retrieval-augmented generation from scratch, on the premise that fine-tuning LLMs for facts is expensive and unreliable.

What it does
This repo is a collection of Jupyter notebooks paired with a YouTube playlist. It walks through retrieval-augmented generation from first principles: indexing source documents, retrieving relevant chunks, and feeding them to an LLM so it can answer beyond its fixed training data. The material is positioned as a cheaper, more reliable alternative to fine-tuning for factual recall.
The interesting bit
Rather than dumping code and assuming you already know why vector search matters, the project treats RAG as a literacy problem. By pairing notebooks with video explanations, it targets the awkward middle ground between buzzword familiarity and actually understanding how the pieces fit together.
Key highlights
- Educational focus: starts with indexing, retrieval, and generation basics.
- Multimedia format: Jupyter notebooks accompany a dedicated YouTube video playlist.
- Pragmatic framing: positions RAG as a workaround for the high cost and weak factual recall of fine-tuning.
- From the LangChain AI team, though the README omits specifics on framework dependencies or prerequisites.
Caveats
- The README is minimal: it does not list prerequisites, framework dependencies, or how many notebooks are included.
- It is unclear whether the notebooks stand alone or require the companion videos to fill conceptual gaps.
Verdict
Worth bookmarking if you need to close the gap between RAG buzzword bingo and actually understanding indexing and retrieval. Skip it if you are already optimizing embedding models and rerankers in production.
Frequently asked
- What is langchain-ai/rag-from-scratch?
- A notebook-and-video playlist that teaches retrieval-augmented generation from scratch, on the premise that fine-tuning LLMs for facts is expensive and unreliable.
- Is rag-from-scratch open source?
- Yes — langchain-ai/rag-from-scratch is an open-source project tracked on heatdrop.
- What language is rag-from-scratch written in?
- langchain-ai/rag-from-scratch is primarily written in Jupyter Notebook.
- How popular is rag-from-scratch?
- langchain-ai/rag-from-scratch has 8.9k stars on GitHub and is currently cooling off.
- Where can I find rag-from-scratch?
- langchain-ai/rag-from-scratch is on GitHub at https://github.com/langchain-ai/rag-from-scratch.