Local Retrieval Augmented Generation (RAG) from Scratch (step by step tutorial) Daniel Bourke Kho Tổng Hợp 225,947 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 14:08 Karaoke Liên Khúc Tone Nữ Dễ Hát | Chọn Lọc Nhạc Cha Cha Hay Nhất - Ngày Em Ra Đi Kho Nhạc Karaoke 410,310 view 1 năm trước Add 0:34 Culinary Revolution 4Keepz Kitchen 82 view 1 năm trước Add 2:51 CYMRU IN SEVENTH HEAVEN! | Wales 7-1 North Macedonia | World Cup Qualifier Highlights FA Wales 99,946 view 1 năm trước Add 0:11 Dancing Baby😁🙃❤ #shorts #baby #dance MyDear 224 view 4 năm trước Add 4:54 Đời Đá Vàng - Tone Nữ - Beat Guitar - Karaoke NBC KARAOKE NBC 54,840 view 4 năm trước Add 5:00 NỬA VẦNG TRĂNG | Bạch Công Khanh - Sàn Chiến Giọng Hát tập 8 Bạch Công Khanh Official 9,934,494 view 7 năm trước Add 3:46 Cách Làm DƯA CHUA RAU MUỐNG Đồng Vàng Óng Giòn Rụm Và Không Bị Đen | Bà Mẹ Quê Bà Mẹ Quê 2,734 view 2 năm trước Add 2:10 “HUNGRY” Official Music Video by Moneyy Mo. Prod. by Head-Klap Ent. Moneyy Mo 1,088 view 5 năm trước Add 58:53 walking around iraq as a gecko Geck 1,533,699 view 11 tháng trước Add 17:24 15 MOST DANGEROUS Ocean Creatures In The World Top Fives 8,152,295 view 6 năm trước Add 3:24 I Like You Chris Dorsey - Topic 195 view 3 năm trước Add 1:03 Ghé ăn tô bánh canh cua 350k gây náo loạn Sài Gòn 1 thời | ĐI ĐÂY ĐI ĐÓ #didausaigon #didaydido Đi Đây Đi Đó 502,251 view 1 năm trước Add 3:51 🔔 JINGLE BELLS 🎄 HEAVY METAL VERSION - (Drum Cover by Mike Jaxsin) ALL for ROME 1,510 view 11 tháng trước Add 54:34 HOI AN ANCIENT TOWN at NIGHT | Lantern + Food Tour Vietnam Mark Paragas Official 12,419 view 1 năm trước Add 0:20 5 BEST PSYCHO THRILLER MOVIES 🤯 #shorts iamrajputshiv 3,738,660 view 1 năm trước Add 0:00 Bloomberg Live: Business, Finance, Earnings & Investment News | Watch 7AM - 6PM ET Weekdays Bloomberg Podcasts 16,648,707 view 2 năm trước Add 16:57 Rio Replay: Womens Tennis Doubles Final Match Olympic Games 813,850 view 10 năm trước Add 1:32:24 🔴Trực tiếp: GELEXIMCO HƯNG YÊN vs VTV B.Đ LONG AN | Giải BC VĐQG các CLB 2026 - Cúp Phân Bón Cà Mau On Sports 53,456 view 7 tháng trước Add 4:18 Sợ yêu & Yêu như ngày yêu cuối - Bích Trâm & Dominix - The Voice 2019 Nô tì đâyyy! 66,908 view 7 năm trước Add 1:06:33 PINK - Greatest Hits 2025 - The Best of Pink - Pink Greatest Hits Full Album Vibe Nation 703,760 view 1 năm trước Add