Local Retrieval Augmented Generation (RAG) from Scratch (step by step tutorial) Daniel Bourke Kho Tổng Hợp 225,896 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 44:24 NOVA CRISE ENTRE AS KARDASHIANS Breno Moreru 36,929 view 5 tháng trước Add 2:00:10 قصة ناجي من جحيم ميانمار، مغاربة كانوا سبب في الخطف ديالي وهادي هي القصة الحقيقية... Fakhr-din L'hamri 2,877,473 view 1 năm trước Add 2:11:04 Oxford University Mathematician takes Irish High School Maths Exam Tom Rocks Maths 273,397 view 1 năm trước Add 56:15 Con Dụ Tôi Sang Tên Toàn Bộ Tài Sản. Ký Xong, Tụi Nó Nói Thẳng: “Nhà Này Tính Sao Là Quyền Tụi Con…” Tuổi Về Chiều 2,414 view 5 tháng trước Add 1:24:02 [PODCAST] Ghế Nóng Bộ Chính Trị diễn biến bất ngờ. Sau hội nghị lần thứ 14 khóa XIII. LOA PHƯỜNG PODCAST Official 122,484 view 5 tháng trước Add 6:56 1+ Year update EF ECOFLOW Delta 2 + Battery Spencer Does Reviews 44,696 view 1 năm trước Add 4:39 Passeio em um Shopping Canadense perto de Vancouver! PequenoSapeca 18,041 view 5 tháng trước Add 1:20:38 Where are all the Skyrim killers? NeverKnowsBest 889,624 view 11 tháng trước Add 56:05 Rossini: Six Overtures / William Tell, Il Barbiere di Siviglia (reference recording: Alceo Galliera) Classical Music/ /Reference Recording 14,594 view 1 năm trước Add 15:16 ¡Las Motos MÁS IMPOSIBLES del Mundo! Volando La Mente 19,862 view 5 tháng trước Add 19:56 Thử Thách Thoát Khỏi Phòng | Tiện Ích Thông Minh vs Hacks Crazy DO Crazy DO Vietnamese 28,744 view 6 tháng trước Add 55:18 Để tránh gia đình phá sản, Tôi đã lấy một người chồng giàu có nhưng Nhút nhát. Đêm Tân Hôn Phim truyền hình về Cuộc sống 2,010 view 5 tháng trước Add 1:03:28 Phu Nhân Trở Về | Ả tâm cơ t-á-n-g người phụ nữ ở sân bay mà không biết đó là mẹ chồng của mình Bảo Ngọc 24,688 view 5 tháng trước Add 38:25 أغرب رجل في العالم 12 زوجة وأكثر من 1000 حفيد 😱 صدمة كبيرة 🇺🇬 KasoEst 353,216 view 7 tháng trước Add 1:02:34 روسيا بين الحقيقة و الإعلام في 2025 !! Mehdi Chettah مهدي شطاح 982,857 view 6 tháng trước Add 37:01 莫文蔚9首好听的歌 这世界那么多人 盛夏的果实 外面的世界 阴天 他不爱我 忽然之间 电台情歌 爱情 当你老了 MusicRelax 2,371,400 view 2 năm trước Add 2:50:23 Autumn Lakeside Retreat | The Perfect Twilight Escape 🍁🔥 Atmosphere Sounds 53,612 view 6 tháng trước Add 30:40 Ne sadite jagode u jesen prije nego što ovo pogledate! 3 kobne pogreške koje će vam uništiti urod. Moj vrt 13,046 view 6 tháng trước Add 19:01 Thử Thách Nấu Ăn Giữa Tôi Và Bà | Thủ Thuật Nhà Bếp Tuyệt Vời Crazy DO Crazy DO Vietnamese 8,271 view 6 tháng trước Add 1:09:50 From canceled surgery to sold out weekends with receipts | Full Interview w/ Comedian Zoltan Kaszas Hot Breath! Comedy Network 5,584 view 5 tháng trước Add