Prev play stop Next mute max volume 00:00 00:00 repeat Update Required To play the media you will need to either update your browser to a recent version or update your Flash plugin. Local Retrieval Augmented Generation (RAG) from Scratch (step by step tutorial) Daniel Bourke Kho Tổng Hợp 225,919 2 năm trước Xem video 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 Mp3 liên quan 8:12 Göz Aşısı Ne Zaman Yapılır HAYALLERİMİ YAŞIYORUM 29,979 view 3 năm trước 1:07:21 Halloween Special 🕷️🎃🦇 l Woozle - Die Serie l WOOZLE GOOZLE Woozle Goozle 224,001 view 9 tháng trước 9:56 Derek Moneyberg’s BJJ Black Belt Controversy: Why Gordon Ryan Defended Him Legal But Shady 4,471 view 10 tháng trước 13:35 How to Make a Wedged Mortise & Tenon Joint Wood and Shop 97,509 view 10 năm trước 1:51 HOW TO ACE ANY SCANTRON TEST - HIGH SCHOOL HACKS Tim M. 50,421 view 8 năm trước 23:22 I Made My Own AAU Team to BEAT Cam Wilder’s RWE Jesser 2,291,107 view 1 năm trước 3:52 Making a leather finger tab for archery DIY With Bhairav 7,862 view 5 năm trước 31:15 Fingerzinken auf der Säge: Fertig gekaufte Vorrichtung oder Selbstbau? Tipps und Tricks, Verleimen. Heiko Rech 17,957 view 1 năm trước 18:43 Mes semis à venir sur janvier/début février (sous abri) au potager. Le potager d'Olivier 164,348 view 1 năm trước 8:20 Cattle vs. Sheep: Which Makes More Money? Livestock Insights 384,576 view 1 năm trước 38:01 True Wildlife Crime: The Hollywood Buck Case Virginia Department of Wildlife Resources 231,526 view 1 năm trước 26:18 Playing as HULK in Super Mario! (Mario Odyssey Mods!) Manx Ninja Pig 6,577,176 view 11 tháng trước 1:25:51 Best of Morgan Wallen Playlist 🎶 Morgan Wallen Greatest Hits 🎶 Morgan Wallen New Album 2025 Revive Music 1,083,574 view 1 năm trước 21:49 MIX BIESIADNY!!! NOWOŚĆ 2025 🎶💃💖 NAJLEPSZA ZABAWA DISCO POLO PoloNaWypasie 444,074 view 10 tháng trước 15:45 How to Fish the TT Switchblade+ Lure for Flathead, Bream, Snapper and more - How to catch Flathead. Tackle Tactics TV 20,336 view 2 năm trước 0:41 Unique Restore-It Black Tank Sensor Cleaner: Tutorial Unique Camping + Marine 1,798 view 1 năm trước 6:30 The Weeknd - Rockin (Extended) QMM / QualityMotionMusic ™ 60,278 view 2 năm trước 3:30 CHEEN & La Machine à Mixer - Kol Shi’ CHEEN 1,190 view 5 năm trước 3:04 Clean Bandit and Mabel - Tick Tock (feat. 24kGoldn) [Official Video] Clean Bandit 119,787,240 view 5 năm trước 2:50:20 Aa Ab Laut Chalen (1999) - Superhit Bollywood Movie | Aishwarya Rai | Akshaye K | Rajesh Khanna Bollywood Premium 18,230,336 view 2 năm trước Thể loại nhạc