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,921 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 21:43 Was macht ein Baby im Bauch? l WOOZLE GOOZLE Woozle Goozle 2,889,303 view 2 năm trước 15:49 Feuer löschen am Brandsimulator - Der Feuerflieger | SWR Doku SWR Doku 65,790 view 4 năm trước 33:15 Meine Eltern sagten: „Am Tag der Hochzeit deines Bruders solltest du besser nicht kommen!“ Also… Lauras Geschichten 13,120 view 10 tháng trước 46:32 Legendary John Bogle Shares the Investment Lessons of a Lifetime (Historical) WEALTHTRACK 374,021 view 7 năm trước 12:43 दस करोड़ रुपये लिए थे उसने मुझे बचाने के लिए | Sunny Deol Action | Salaakhen Movie | Action Scene Action Ke Baap 1,378,598 view 1 năm trước 53:22 🔴 दरबार में आया चार भाइयों का अनोखा विवाद | akbar birbal New stories | Hindi khahani | MORAL STORY RK 168,040 view 9 tháng trước 34:15 Drauf sein auf TikTok: Likes für den Rausch | STRG_F STRG_F 1,760,257 view 3 năm trước 50:53 कॉमेडी की जोड़ी No.1 - ये दोनों तो चोर है | गोविंदा-संजय दत्त-टीकू तलसानिया की नॉन स्टॉप धमाल कॉमेडी Haste Raho 1,307,997 view 1 năm trước 1:03:10 She Was Left With a $1,000 Bill On a Date, So a Millionaire CEO Whispered Pretend youre with me.. Real Love Stories 44 view 10 tháng trước 40:59 Fatal Error! How UPS Flight 1354 Ended in Disaster Mentour Pilot 1,918,565 view 2 năm trước 39:13 From Army Truck to ULTIMATE DIY Overland 4x4 Camper: Unimog Build Tour (MUST SEE Interior) Our Way To Roam 89,344 view 1 năm trước 50:50 Dağlardaki Zorlu Hayat / Köy Belgeseli ÖZGÜR GÜLAY 299,827 view 1 năm trước 46:55 ELA ia ATACAR os PORCOS SELVAGENS, CHEGUEI bem na hora! ACAMPEI no refúgio dos ANIMAIS Silvestres PARAZÃO RÚSTICO 2,099,745 view 1 năm trước 28:49 Die Schrottzerleger - Schuften auf dem Riesenschrottplatz | Die Nordreportage | NDR Doku NDR Doku 912,784 view 2 năm trước 26:21 How To Build A One Of A Kind Kitchen Island Northeast Woodworks 27,084 view 1 năm trước 13:08 The Secret to Make the BEST Sourdough Bread The Perfect Loaf 775,422 view 2 năm trước 1:21:40 Buchensterben - Zeit für Panik im Wald? EinMannimWald 38,798 view 7 năm trước 25:57 Selbstversorgen mit Permakultur – Wie sieht ein nachhaltiges Leben aus? | Y-Kollektiv Y-Kollektiv 1,506,317 view 2 năm trước 21:37 कपड़े खरीदने के लिए ब्रह्मानंदम ने 2 लाख दिए : Brahamanandam Hindi Dubbed Comedy | Pawan Kalyan Feel Good Movies 74,721 view 10 tháng trước 1:20:07 गरीब लकड़हारा और सोने की चिड़िया | Sone Ki Chidiya | ज्ञानवर्धक हिंदी कहानी | कथा |Hindi Moral Story Sohail Voice 895,657 view 1 năm trước Thể loại nhạc