{"id":13465290,"url":"https://github.com/langchain-ai/rag-from-scratch","last_synced_at":"2025-05-14T19:07:20.356Z","repository":{"id":221267004,"uuid":"750618502","full_name":"langchain-ai/rag-from-scratch","owner":"langchain-ai","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-09T21:45:44.000Z","size":3326,"stargazers_count":3864,"open_issues_count":35,"forks_count":1135,"subscribers_count":41,"default_branch":"main","last_synced_at":"2025-04-11T10:00:40.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/langchain-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-31T01:23:48.000Z","updated_at":"2025-04-11T01:35:25.000Z","dependencies_parsed_at":"2024-02-18T22:27:37.490Z","dependency_job_id":"aed8f78c-882e-46c4-8c20-b40bf1ebcb96","html_url":"https://github.com/langchain-ai/rag-from-scratch","commit_stats":null,"previous_names":["langchain-ai/rag-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Frag-from-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Frag-from-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Frag-from-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Frag-from-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langchain-ai","download_url":"https://codeload.github.com/langchain-ai/rag-from-scratch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254209859,"owners_count":22032897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T15:00:25.963Z","updated_at":"2025-05-14T19:07:18.789Z","avatar_url":"https://github.com/langchain-ai.png","language":"Jupyter Notebook","funding_links":[],"categories":["Tutorials and Guides","others","Repos","A01_文本生成_文本对话","🛠️ Tutorials \u0026 Cookbooks","**Section 4** : LangChain Features, Usage, and Comparisons","Jupyter Notebook","Summary","📦 实战项目与数据集","📑 Research Papers","Educational Content","Tutorials"],"sub_categories":["Evaluation","大语言对话模型及数据","T8 · Retrieval-Augmented Generation (RAG)","**LangChain Feature Matrix \u0026 Cheetsheet**","推荐实战项目","Core Research Areas","Courses and Tutorials"],"readme":"# RAG From Scratch\n\nLLMs 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 facutal recall](https://www.anyscale.com/blog/fine-tuning-is-for-form-not-facts) and [can be costly](https://www.glean.com/blog/how-to-build-an-ai-assistant-for-the-enterprise).\nRetrieval 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. \nThese notebooks accompany a [video playlist](https://youtube.com/playlist?list=PLfaIDFEXuae2LXbO1_PKyVJiQ23ZztA0x\u0026feature=shared) that builds up an understanding of RAG from scratch, starting with the basics of indexing, retrieval, and generation. \n![rag_detail_v2](https://github.com/langchain-ai/rag-from-scratch/assets/122662504/54a2d76c-b07e-49e7-b4ce-fc45667360a1)\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Frag-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangchain-ai%2Frag-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Frag-from-scratch/lists"}