langchain-ai/rag-from-scratch

▲ 476 stars today★ 9,892⑂ 2,276

About langchain-ai/rag-from-scratch

langchain-ai/rag-from-scratch is an open-source project on GitHub, mainly written in Jupyter Notebook. It currently holds 9,892 stars and 2,276 forks with 46 open issues, and was last pushed on 2025-06-26 (repository created 2024-01-31).

Project Overview

Git Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository langchain-ai/rag-from-scratch · default branch main · size 3333 KB · watchers 69 · source: GitHub REST API and repository README

README

RAG From Scratch

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. rag_detail_v2 Video playlist

GitHub Stars & Activity

9,892Stars
2,276Forks
46Open issues
Jupyter NotebookLanguage

GitHub Popularity

GitHub stars9,892
Forks2,276
Open issues46
Primary languageJupyter Notebook
License-
Stars gained today476
Created2024-01-31
Last pushed2025-06-26

Trending History

Weekly boardrank #85 · ▲ 476 stars

Related GitHub Projects

1

microsoft / generative-ai-for-beginners

Jupyter Notebook★ 123,716⑂ 66,570▲ 95 stars
→
2

microsoft / ML-For-Beginners

Jupyter Notebook★ 92,270⑂ 22,936▲ 52 stars
→
3

microsoft / AI-For-Beginners

Jupyter Notebook★ 70,958⑂ 13,833▲ 108 stars
→
4

lyogavin / airllm

Jupyter Notebook★ 42,543⑂ 4,407▲ 55 stars
→
5

karpathy / nn-zero-to-hero

Jupyter Notebook★ 25,795⑂ 3,743▲ 73 stars
→
6

mattpocock / skills

Shell★ 326,317⑂ 27,407▲ 793 stars
→
7

obra / superpowers

Shell★ 318,900⑂ 28,421▲ 1,905 stars
→
8

affaan-m / ECC

JavaScript★ 304,931⑂ 44,904▲ 718 stars
→

More Trending Repositories