Local Retrieval Augmented Generation (RAG) from Scratch (step by step tutorial) Daniel Bourke Kho Tổng Hợp 225,885 1 năm trước Add Nghe mp3 Facebook Tweet XEM MÔ TẢ In this video we'll build a Retrieval Augmented Generation (RAG) pipeline to run locally from scratch. There are frameworks to do this such as LangChain and LlamaIndex, however, building from scratch means that you'll know all the parts of the puzzle. Specifically, we'll build NutriChat, a RAG pipeline that allows someone to ask questions of a 1200 page Nutrition Textbook PDF. Code on GitHub - https://github.com/mrdbourke/simple-local-rag Whiteboard - https://whimsical.com/simple-local-rag-workflow-39kToR3yNf7E8kY4sS2tjV Be sure to check out NVIDIA GTC, NVIDIA's GPU Technology Conference running from March 18-21. It's free to attend virtually! That's what I'm doing. Sign up to GTC24 here: https://nvda.ws/3GUZygQ Other links: Download Nutrify (take a photo of food and learn about it) - https://nutrify.app Learn AI/ML (beginner-friendly course) - https://dbourke.link/ZTMMLcourse Learn TensorFlow - https://dbourke.link/ZTMTFcourse Learn PyTorch - https://dbourke.link/ZTMPyTorch AI/ML courses/books I recommend - https://www.mrdbourke.com/ml-resources/ Read my novel Charlie Walks - https://www.charliewalks.com Connect elsewhere: Web - https://dbourke.link/web Twitter - https://www.twitter.com/mrdbourke Twitch - https://www.twitch.tv/mrdbourke ArXiv channel (past streams) - https://dbourke.link/archive-channel Get email updates on my work - https://dbourke.link/newsletter Timestamps: 0:00 - Intro/NVIDIA GTC 2:25 - Part 0: Resources and overview 8:33 - Part 1: What is RAG? Why RAG? Why locally? 12:26 - Why RAG? 19:31 - What can RAG be used for? 26:08 - Why run locally? 30:26 - Part 2: What we're going to build 40:40 - Original Retrieval Augmented Generation paper 46:04 - Part 3: Importing and processing a PDF document 48:29 - Code starts! Importing a PDF and making it readable 1:17:09 - Part 4: Preprocessing our text into chunks (text splitting) 1:28:27 - Chunking our sentences together 1:56:38 - Part 5: Embedding creation 1:58:15 - Incredible embeddings resource by Vicky Boykis 1:58:49 - Open-source embedding models 2:00:00 - Creating our embedding model 2:09:02 - Creating embeddings on CPU vs GPU 2:25:14 - Part 6: Retrieval (semantic search) 2:36:57 - Troubleshooting np.fromstring (live!) 2:41:41 - Creating a small semantic search pipeline 2:56:25 - Showcasing the speed of vector search on GPUs 3:20:02 - Part 7: Similarity measures between embedding vectors explained 3:35:58 - Part 8: Functionizing our semantic search pipeline (retrieval) 3:46:49 - Part 9: Getting a Large Langue Model (LLM) to run locally 3:47:51 - Which LLM should I use? 4:03:18 - Loading a LLM locally 4:30:48 - Part 10: Generating text with our local LLM 4:49:09 - Part 11: Augmenting our prompt with context items 5:16:04 - Part 12: Functionizing our text generation step (putting it all together) 5:33:57 - Summary and potential extensions 5:36:00 - Leave a comment if there's any other videos you'd like to see! #ai #rag #GTC24 Video liên quan 1:43:21 Hồi ký vượt biên hay nhất, 1 MÌNH 1 NGỰA CỨU MỸ NHÂN, người quốc gia Người Quốc Gia 101,530 view 6 tháng trước Add 16:56 DAS SCHEPPERT! Wie gefährlich sind Peitschen? | Survival Mattin MATTIN 298,073 view 1 năm trước Add 1:00:00 AFRO HOUSE MIX 2025 | Best of Deep Tribal House Music Global Afro Grooves 22,479 view 4 tháng trước Add 22:41 Solo Survival Camping & Building a Log Shelter Madison Clysdale 351,233 view 5 tháng trước Add 34:01 Why Do Hopper’s Paintings Feel So Lonely? | Biographical Documentary Professor Graeme Yorston 212,811 view 6 tháng trước Add 13:06 How to fit kitchen worktops like a pro ! LTW Carpentry 30,207 view 8 tháng trước Add 20:22 Ford S Max, only fault codes P2463, P246C, or are they? Intelligent Auto 4,727 view 1 năm trước Add 19:49 How Water Can Save the World from Climate Change Water Stories 21,498 view 1 năm trước Add 10:16 Profitable Beef Production… How we put beef on your table. Baldy’s Farm 64,303 view 4 năm trước Add 55:29 We Built This Mansion in the Middle of the Forest for 365 Days to Survive Lesnoy_Offline 619,636 view 9 tháng trước Add 15:35 Thermally Upgrading Suspended Timber Floors with Natural Insulation Ecological Building Systems 84,596 view 2 năm trước Add 3:44:24 Aesthetic Aura Background 3 hours Aesthetically Ava 1,330,809 view 2 năm trước Add 47:25 Efficiency Killer? Are Buffer Tanks Costing You More Than You Think? Renewable Heating Hub 8,814 view 1 năm trước Add 14:43 5 Common Architectural Mistakes That Shrink Small Homes (and how to fix them) Lorenzo Centioni 36,481 view 4 tháng trước Add 36:20 Khám Phá Nguy Hiểm Nhất Của Carl Jung: Cái Giá Phải Trả Khi Bạn Nhìn Thấu Mọi Thứ Góc Triết Nhân 157 view 5 tháng trước Add 3:53:55 Anh Về Miền Tây, Mời Anh Về Thăm Quê Em - LK Nhạc Sống Dân Ca Miền Tây Vừa Ra Lò Đậm Tình Quê Hương Giai Điệu Miền Tây 865,616 view 2 năm trước Add 33:40 Freie Waffen zur Selbstverteidigung! 🔫 Outdoor Saxonia 18,359 view 2 năm trước Add 23:58 This Old House | Between a Rock and Hardwood (S41 E18) FULL EPISODE This Old House 206,328 view 4 năm trước Add 21:31 My Lottery Dream Home S18E4 | Bigger Vegas Home Hunt with Room to Grow Clint Ebert 77,767 view 6 tháng trước Add 32:28 ASMR Making Blue Candy (With explanations but NO Talking) Hercules Candy ASMR 1,109,949 view 1 năm trước Add