LLMs are trained on a large but fixed corpus of data, limiting their ability to reason about private or recent information. Fine-tuning is one way to mitigate this, but is often not well-suited for factual recall and can be costly.
Retrieval augmented generation (RAG) has emerged as a popular and powerful mechanism to expand an LLM's knowledge base, using documents retrieved from an external data source to ground the LLM generation via in-context learning.
These notebooks accompany a video playlist that builds up an understanding of RAG from scratch, starting with the basics of indexing, retrieval, and generation.
← Open Source
langchain-ai
rag-from-scratch (Open on GitHub)
langchain-ai/rag-from-scratch on GitHub: Jupyter Notebook, Tutorials, AIE roadmap, RAG.
TutorialsAIE roadmapJupyter Notebook
Momentum
+7stars in 24 hours+0.1%
10.2k
Stars
2.33k
Forks
+29
This week
4
Contributors
Created 2024-01-31 · Updated 2026-12-06 · #1717 today
Top developers
README
Nearby in the ranking
Similar items