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,899 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 35:35 Forklift Cylinder Repair but We DIDN’T Expect THIS! 😱 | Part 1 Cutting Edge Engineering Australia 1,229,394 view 1 năm trước 13:00 Cinnamon Raisin Bread with Tunnels of Cinnamon & Brown Sugar Jenny Can Cook 1,387,848 view 12 năm trước 4:08 HM Queen Elizabeth II leaves Scotland for the final time The Salt Cots 1,044,829 view 3 năm trước 33:26 We Build A Massive 3-Level Earthbag Dome | Start To Finish Our Self-Reliant Life 599,129 view 4 năm trước 4:06 Euromillions winner Neil Trotter on what he did with his £108m jackpot NEWS channel 362,703 view 6 năm trước 1:23:30 Building a Cabin in The Wild-Full Step-by-Step Documentary. Start to Finish abz bushcraft 98,368 view 10 tháng trước 11:11 Busting the Vocal Vibrato Is Natural Myth Scores Unstitched 48,892 view 4 năm trước 20:10 After China’s Parade – Watch the SCOTS March with Elegance Yao Hui 752,059 view 7 tháng trước 1:45:33 Ep 140: Barney Fife of Baghdad The Antihero Broadcast 23 view 7 tháng trước 11:49 Royal Guards BREAK Character in the Most Heartfelt Moments RYPE- royal guard 5,436,529 view 1 năm trước 54:34 How LARGE CHAIN Is Made. How the World’s Biggest Industries Cast Engines & Build Heavy-Duty Machines YouCanDo TV 133,522 view 9 tháng trước 7:37 ‘I love Hitler’: Leaked texts EXPOSE Young Republicans’ racist chat, Politico reports MS NOW 324,008 view 6 tháng trước 42:44 Philip Glass - Music from The Hours | complete Coversart 1,923,499 view 10 năm trước 9:45 Biggest Perch of My Life 40cm+? |Malmö Canals Fall Fishing Spiceoflife 952 view 6 tháng trước 45:09 JP Performance - NICHT Driften!? Toyota überwacht uns ganz genau! | Japan Streetstyle JP Performance GmbH 432,752 view 1 năm trước 1:06:33 48 Stunden Zeit: Die Suche nach dem MONSTER-Barsch! First Cast TV 149,595 view 2 năm trước 1:48:33 Nuclear 101: Technologies and Institutions of Nuclear Security Belfer Center 50,743 view 12 năm trước 1:58:54 U.S. Strategic Nuclear Policy, An Oral History, Part 1 Sandia National Labs 1,272,704 view 7 năm trước 18:40 On the trap line with TRAPPER J ep. 15 TRAPPER J 20,422 view 2 năm trước 58:42 L’affaire Marie Le Vacon : La miraculée accuse | Chroniques Criminelles TF1+ 176,701 view 3 năm trước Thể loại nhạc