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,909 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:31 Jack LaLanne 1978 with Bill Boggs BillBoggsTV 36,180 view 9 năm trước 5:36 Chris Hemsworth is reunited with his heartthrob to talk ‘Crime 101’ | Capital Capital FM 37,799 view 4 tháng trước 4:16 Nationwide SIR Rollout Row: Niladri Bhattacharya On TMC’s Controversial Remark On SIR In Bengal Times Now 7,988 view 7 tháng trước 58:44 Shatta Dancehall Mix 2025 | The Best of Shatta Dancehall 2025 by OSOCITY OSOCITYNATION 1,445,303 view 1 năm trước 11:33 NEW Walmart+ Membership vs Amazon Prime - Which is Better? The Deal Guy 170,450 view 5 năm trước 0:34 Disney/Walt Disney Animation Studios (2025) ZyMagicAmir 7,955 view 6 tháng trước 15:54 The Best Disney Princess EVER! Screen Junkies 434,306 view 9 năm trước 10:43 Bản Tin Tài Chính Kinh Doanh Hôm Nay Sáng 08/04/2026 #taichinhkinhte #taichinhkinhdoanh #kinhtế TÀI CHÍNH KINH TẾ 359 view 2 tháng trước 9:34 Cách làm tôm kho quẹt thơm ngon đậm đà | món ngon mỗi ngày htp Món ngon mỗi ngày HTP 238,299 view 1 năm trước 43:44 Inside Americas Anorexic Cult (No Eating) Drew Binsky 3,789,464 view 6 tháng trước 1:42:21 High Energy & Italo Disco Full Mix (By Mario Rodríguez) Octubre 20-23 DJ MARIO RODRIGUEZ 88,982 view 2 năm trước 2:31 Field Of Dreams Chris Dorsey - Topic 112 view 10 tháng trước 0:52 SATISFYING CONTOUR BLENDING VIDEO!!! | Sydney Morgan #shorts Sydney Morgan 103,020,329 view 4 năm trước 2:23:42 The ENTIRE History Of The Vietnam War | 1862 - 1975 (Documentary) The Entire History 873,196 view 1 năm trước 52:39 ALBUM NHẠC TUYỂN 2026 || Nghe Hoài Không Chán || Tb: Phương Dung Bolero || St: Nhiều Tác Giả Phương Dung Entertainment 79,858 view 4 tháng trước 44:00 Safety Helmets Knocked Off When Action Gets Too Hot | American Gladiators | Full Episode | S02E02 American Gladiators 109,938 view 4 năm trước 0:27 Shocking ...New Dimple hacks 😱#makeuphacks #shorts #youtubeshorts Goodblush 38,185,442 view 11 tháng trước 0:23 Top 8 Most Famous Best Missiles System of India 🇮🇳 #shorts #viral #india #trending #youtube #facts Topper10fact 1,663 view 11 tháng trước 1:32 Wuthering Heights | Official Teaser Warner Bros. 13,605,882 view 9 tháng trước 2:22 Sweet and Sour Pork RecipeTin Eats 479,847 view 5 năm trước Thể loại nhạc