Local Retrieval Augmented Generation (RAG) from Scratch (step by step tutorial) Daniel Bourke Kho Tổng Hợp 225,922 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 1:49:51 BL completo 📚Compré a un joven bello por soledad… dice que no perdonará el abandono Amor Prohibido 1,166 view 9 tháng trước Add 42:38 Mi Ex-Alfa Se Casa, Yo Estoy Embarazado de Él. BL Yaoi | Omega Love | Manhwa 🏳️🌈 Susy's Romantic Library 9,270 view 11 tháng trước Add 40:17 Me Convertí en Omega Tardío… Y Mi Mejor Amigo Alpha Me Embarazó Durante Mi Celo Historia BL 6,490 view 11 tháng trước Add 46:08 Era el invisible Omega… hasta que el Alpha más temido me puso en su mira Historia BL 5,296 view 8 tháng trước Add 32:10 Pensé que solo era una crema de manos… hasta que mi compañero empezó a gemir en la ducha Historia BL 1,754 view 8 tháng trước Add 1:15:33 India’s Foreign Policy, China, Bangladesh और Pakistan...| Podcast with Ambassador Deepak Vohra Desimartini 287,503 view 9 tháng trước Add 53:29 Ally To Adversary: Why Taliban Is Fighting Pakistan | In Our Defence | India Today India Today 22,423 view 9 tháng trước Add 21:19 36 Hours of Hell: Surviving the SAS Interrogation Phase Mike Ritland 91,240 view 8 tháng trước Add 28:19 Defence, Mordern Warfare & Future Of BHARAT: LtGen DP Pandeys Expertise Decodes All | News18 CNN-News18 4,426 view 8 tháng trước Add 25:08 Nuke threat, Kashmir, economic envy: 3 points from Munir speech & General Mirza’s anti-India rant ThePrint 135,767 view 9 tháng trước Add 48:38 India vs Trump vs China I The New Military Strategy India Needs Now I Lt Gen Shukla I Barkha Mojo Story 21,223 view 9 tháng trước Add 45:19 From the Indus Valley to Modi’s India: Audrey Truschke on 5,000 Years of South Asian History New Wave History 4,933 view 8 tháng trước Add 1:21:24 BÁO ỨNG TỘI ÁC | KÝ SỰ PHÁP ĐÌNH 2025 | TRUY TÌM BẰNG CHỨNG 2025 | PHÍA SAU MỘT PHIÊN TÒA 2025 THVL Tổng Hợp 14,582 view 8 tháng trước Add 1:39:14 Bao Công Gặp Án Oan Khiên Phải Tìm Hòa Thượng Dùng Phật Pháp Tìm Ra Hung Thủ | Tân Bao Thanh Thiên Xem Là Ghiền 109,816 view 9 tháng trước Add 2:21:54 Bị mẹ chồng MÓC MỈA giữa bữa cơm, con dâu chỉ nói 1 câu khiến chồng TÍM MẶT Mê Phim Việt 1,094 view 8 tháng trước Add 9:29 How to manage your 24 hours for success/ Shi Heng Yi motivational speech #successmindset Success Blueprint 66 view 9 tháng trước Add 1:03:07 BÀI HỌC NHỚ ĐỜI | Truy Tìm Bằng Chứng 2025 | Ký Sự Pháp Đình THVL | Chuyện Cảnh Giác Mới 2025 Truyen Hinh Vinh Long 7,429 view 8 tháng trước Add 2:18:13 Khinh dâu nghèo chẳng đáng một xu, mẹ chồng giờ chỉ biết khóc khi phải nhờ cô bón cháo từng muỗng Mê Phim Việt 1,522 view 8 tháng trước Add 50:25 Dậy Sớm Cứu Sống Bạn! 3 VIỆC NÊN LÀM VÀO BUỔI SÁNG ĐỂ CÓ SỨC KHỎE TUYỆT VỜI | Thầy Thích Minh Đạo Diệu Pháp 315,571 view 2 năm trước Add 1:07:11 Những ai đang thức khuya, ngủ sau 22 giờ, hãy nghe điều này - Thầy Thích Minh Đạo Diệu Pháp 206,059 view 1 năm trước Add