Local Retrieval Augmented Generation (RAG) from Scratch (step by step tutorial) Daniel Bourke Kho Tổng Hợp 225,907 2 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 26:08 Craigslist Hunter | Scammers Caught In The Act Part 2 (Compilation) Craigslist Hunter 2,497,323 view 2 năm trước Add 8:49 Mermaid Helps Baby Turtle 🧜♀️ | English Moral Stories | Bedtime Stories Mr Book and Me Stories 16,110 view 1 năm trước Add 11:41 My GM Mom Got Paired Against Gothamchess in an Official Tournament!!!! Anna Cramling 763,530 view 10 tháng trước Add 28:26 Winter Beaver Trapping at its Best 330 MaNiaC 285,105 view 7 năm trước Add 54:46 25 Best USA National Parks In USA | Amazing National Parks USA Scenic Hunter 68,003 view 1 năm trước Add 33:11 Tâm Sự Đêm Muộn Cùng VOV - ĐÀN ÔNG THÍCH CỦA LẠ HAY ĐỒ CŨ | Tư Vấn Tình Yêu Tình Dục Đinh Đoàn Hay CỬA SỔ TÌNH YÊU OFFICIAL 298,008 view 2 năm trước Add 36:56 CUSTOMER TRIED TO SUE ME - SHARING MY ELECTRICIAN HORROR STORY Artisan Electrics 435,704 view 3 năm trước Add 8:54 Schlachtfest mit Freunden - Wie aus einem toten Schwein leckere Würste werden. Thomas Staab PRIVAT 190,307 view 6 năm trước Add 40:18 Recreating Rachel Greens Sweater in F*R*I*E*N*D*S Breathing Yarn 27,315 view 2 năm trước Add 5:58 La produzione dellintarsio sorrentino Stinga Tarsia 147,989 view 7 năm trước Add 9:41 I Tried To Make My Face Younger Bryan Johnson 2,487,334 view 1 năm trước Add 57:43 🌴 Hawaiian Reggae Vibes – Tropical Chill Music for Relaxation & Joy 🌞 Hula Reggae 11,177 view 8 tháng trước Add 43:18 The Little Fairies Journey To Rainbow World! 🧚♀️ | Rainbow High Rainbow High 404,033 view 8 tháng trước Add 17:16 LES QUEUES DARONDE : Un Assemblage Difficile ? Astuces Design - Apprendre l'Ébénisterie 38,541 view 5 năm trước Add 22:09 Harvesting 90 Pounds of PURE, GOLDEN Honey! Fall Line Ridge 3,495,719 view 4 năm trước Add 28:53 2024 Jeep Gladiator Mojave X vs. Ford Ranger Raptor Shootout Driving Sports TV 165,565 view 1 năm trước Add 32:43 Raus aus der Drogensucht - warum Substitution in Deutschland so schwierig ist | Doku | exactly MDR Investigativ 455,877 view 2 năm trước Add 13:36 Rutlands CONTROVERSY! + Big Project + New Tools Rag 'n' Bone Brown 67,940 view 1 năm trước Add 30:47 Quang Lê Tuyệt Phẩm Song Ca Nhạc Vàng Thuy Nga 4,522,811 view 7 năm trước Add 2:04:33 [SỐ ĐẶC BIỆT] Tư Vấn Đêm Khuya 01/10/2025 | Đinh Đoàn Tư Vấn Tâm Lý, Tình Yêu, Hôn Nhân Gia Đình Cửa Sổ Tình Yêu 18,623 view 8 tháng trước Add