Python RAG Tutorial (with Local LLMs): AI For Your PDFs

pixegami April 17, 2024
Video Thumbnail

About

No channel description available.

Video Description

Learn how to build a RAG (Retrieval Augmented Generation) app in Python that can let you query/chat with your PDFs using generative AI. This project contains some more advanced topics, like how to run RAG apps locally (with Ollama), how to update a vector DB with new items, how to use RAG with PDFs (or any other files), and how to test the quality of AI generated responses. 👉 Links 🔗 GitHub: https://github.com/pixegami/rag-tutorial-v2 🔗 Basic RAG Tutorial: https://youtu.be/tcqEUSNCn8I 🔗 PyTest Video: https://youtu.be/YbpKMIUjvK8 👉 Resources 🔗 Document loaders: https://python.langchain.com/docs/modules/data_connection/document_loaders 🔗 PDF Loader: https://python.langchain.com/docs/modules/data_connection/document_loaders/pdf 🔗 Ollama: https://ollama.com 📚 Chapters 00:00 Introduction 01:06 RAG Recap 03:22 Loading PDF Data 05:08 Generate Embeddings 07:16 How To Store and Update Data 10:46 Updating Database 11:45 Running RAG Locally 15:12 Unit Testing AI Output 20:29 Wrapping Up

Spark Your Rocket Project

AI-recommended products based on this video

Loading...
Space Exploration Shuttle Building Toys, 6-in-1 Rocketship STEM Toys for 6 8 9 10 11 12 Year Old, Aerospace Model with Rocket and Launcher Building Block Kit Best Gift for Boys

Space Exploration Shuttle Building Toys, 6-in-1 Rocketship STEM Toys for 6 8 9 10 11 12 Year Old, Aerospace Model with Rocket and Launcher Building Block Kit Best Gift for Boys

(101)
$19.99
FREE delivery Sat, Jun 14 on your first order
Loading...
LEGO Technic Bush Plane Toy - Buildable Airplane Toy for Kids, Boys and Girls, Ages 8+ - Model Airplane Gift with Spinning Propeller, 4-Cylinder Piston Engine, and More - 42198

LEGO Technic Bush Plane Toy - Buildable Airplane Toy for Kids, Boys and Girls, Ages 8+ - Model Airplane Gift with Spinning Propeller, 4-Cylinder Piston Engine, and More - 42198

(149)
$24.98
FREE delivery Sat, Jun 14 on your first order
700+ bought in past month
Loading...
LEGO Technic Bugatti Bolide Racing Car Building Set - Model and Race Engineering Toy for Back to School, Collectible Sports Car Construction Kit for Boys, Girls, and Teen Builders Ages 9+, 42151

LEGO Technic Bugatti Bolide Racing Car Building Set - Model and Race Engineering Toy for Back to School, Collectible Sports Car Construction Kit for Boys, Girls, and Teen Builders Ages 9+, 42151

(2,919)
$50.98
PrimeFREE delivery Sat, Jun 14
300+ bought in past month
Loading...
Under Armour Womens Iso-chill Launch Run VisorVisor

Under Armour Womens Iso-chill Launch Run VisorVisor

(191)
$22.50
FREE delivery Thu, Jun 19 on your first order
300+ bought in past month
Loading...
NEXPOW Car Jump Starter,Car Battery Jump Starter Pack 1500A Peak Q10S for Up to 7.0L Gas and 5.5L Diesel Engine12V Auto Battery Booster,Jumper Cables,Portable Lithium Jump Box with LED Light/USB QC3.0

NEXPOW Car Jump Starter,Car Battery Jump Starter Pack 1500A Peak Q10S for Up to 7.0L Gas and 5.5L Diesel Engine12V Auto Battery Booster,Jumper Cables,Portable Lithium Jump Box with LED Light/USB QC3.0

(4,578)
$71.99
FREE delivery Sat, Jan 3
2K+ bought in past month
Loading...
Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

(181)
$70.15$61.13
$5.05 delivery Thu, Jun 26Only 3 left in stock.
Loading...
9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

(261)
$99.99
FREE delivery Sat, Sep 20
1K+ bought in past month
Loading...
TP-Link AV1000 Powerline Ethernet Adapter(TL-PA7017P KIT) - Gigabit Port, Plug and Play, Extra Power Socket for Additional Devices, Ideal for Smart TV

TP-Link AV1000 Powerline Ethernet Adapter(TL-PA7017P KIT) - Gigabit Port, Plug and Play, Extra Power Socket for Additional Devices, Ideal for Smart TV

(17,610)
$64.99$51.48
PrimeFREE delivery Sat, Jun 14
100+ bought in past month
Loading...
GinTai DC in Power Jack Charging Port Socket Plug Connector Replacement for Lenovo IdeaPad Gaming 3-15IMH05 81Y4 3-15ARH05 3-151HU6 3-15ACH6 Series/Legion 5 15IMH05 82AU00BTUS Laptop

GinTai DC in Power Jack Charging Port Socket Plug Connector Replacement for Lenovo IdeaPad Gaming 3-15IMH05 81Y4 3-15ARH05 3-151HU6 3-15ACH6 Series/Legion 5 15IMH05 82AU00BTUS Laptop

(1)
$13.99
FREE delivery Sat, Jun 21 on your first order
Loading...
Rechargeable Hand Warmers, EnjoyNest C306 3-in-1 Hand Warmer Reusable 10000mAh Electric Portable Pocket Heater with 2 Pack Power Bank Flashlight 3 Levels Heating Gifts for Men,Winter,Hunting,Camping

Rechargeable Hand Warmers, EnjoyNest C306 3-in-1 Hand Warmer Reusable 10000mAh Electric Portable Pocket Heater with 2 Pack Power Bank Flashlight 3 Levels Heating Gifts for Men,Winter,Hunting,Camping

(430)
$58.94$58.44
FREE delivery Jun 13 - 17
Loading...
2Pack Rechargeable Hand Warmer, 8000mAh Electric Hand Warmer Power Bank, Portable USB-C Hand Warmer for Pocket, Reusable Hand Warmer Up to 8 hrs Each, Warm Gift for Men Women, for Hunting, Camping
Amazon's Choice

2Pack Rechargeable Hand Warmer, 8000mAh Electric Hand Warmer Power Bank, Portable USB-C Hand Warmer for Pocket, Reusable Hand Warmer Up to 8 hrs Each, Warm Gift for Men Women, for Hunting, Camping

(1,128)
$15.99
FREE delivery Sat, Jun 14 on your first order
Loading...
VASAGLE Kitchen Shelf on Wheels, Serving Cart with 3 Shelves, Kitchen Cart, Microwave Shelf, for Mini Oven, Toaster, with 6 Hooks, Industrial Style, Rustic Brown and Black UKKS60XV1

VASAGLE Kitchen Shelf on Wheels, Serving Cart with 3 Shelves, Kitchen Cart, Microwave Shelf, for Mini Oven, Toaster, with 6 Hooks, Industrial Style, Rustic Brown and Black UKKS60XV1

(1,967)
$63.99
FREE delivery Wed, Jun 18Only 1 left in stock.
Loading...
GMKtec AD-GP1 External GPU Docking Station, eGPU Enclosure with AMD Radeon 7600M XT GPU Graphics Card, HDMI2.1, DisplayPort2.0, Oculink, USB4, eGPU Dock for Mini PC Laptop Notebook Game Console

GMKtec AD-GP1 External GPU Docking Station, eGPU Enclosure with AMD Radeon 7600M XT GPU Graphics Card, HDMI2.1, DisplayPort2.0, Oculink, USB4, eGPU Dock for Mini PC Laptop Notebook Game Console

(27)
$659.99
PrimeFREE delivery Sat, Jun 14
Loading...
Bluetooth Pillow Speaker for Sleeping, Mini Portable Under Pillow Speaker with White Noise Ultra Thin Pillow Speakers for Deep Sleeping, for Side Sleepers and Deep Sleep

Bluetooth Pillow Speaker for Sleeping, Mini Portable Under Pillow Speaker with White Noise Ultra Thin Pillow Speakers for Deep Sleeping, for Side Sleepers and Deep Sleep

(0)
$13.69
FREE delivery Feb 26 - Mar 5
Loading...
90MM CF9010U12D for Cooling Fan for ASUS Dual RTX 3060 TI 8G MINI V2 for LHR for Graphics Card Cooler T129215SU(Black 2-Fan T12)

90MM CF9010U12D for Cooling Fan for ASUS Dual RTX 3060 TI 8G MINI V2 for LHR for Graphics Card Cooler T129215SU(Black 2-Fan T12)

(0)
$30.14
FREE delivery Mar 19 - Apr 10
Loading...
Gorilla Super Glue XL Liquid, Fast-Setting, Versatile Cyanoacrylate Glue, Anti-Clog Cap, Flow Control Formula, Clear, 25g

Gorilla Super Glue XL Liquid, Fast-Setting, Versatile Cyanoacrylate Glue, Anti-Clog Cap, Flow Control Formula, Clear, 25g

(4,366)
$10.97
FREE delivery Sun, Apr 5 on your first order
1K+ bought in past month
Loading...
Elmer's Disappearing Purple School Glue Stick, 20G, 0.7-Ounce Each, 3-Pack (61666Q)

Elmer's Disappearing Purple School Glue Stick, 20G, 0.7-Ounce Each, 3-Pack (61666Q)

(2,547)
$5.59
FREE delivery Mon, Sep 15 on your first order
10K+ bought in past month
Loading...
Lash Glue for Eyelash Extensions - LANKIZ 5ML Eyelash Extension Glue, 1-2 Sec Fast Drying Semi-Permanent Eyelash Glue with 6 Weeks Retention for Professional Use

Lash Glue for Eyelash Extensions - LANKIZ 5ML Eyelash Extension Glue, 1-2 Sec Fast Drying Semi-Permanent Eyelash Glue with 6 Weeks Retention for Professional Use

(547)
$13.99
FREE delivery Thu, Sep 11 on your first order
50+ bought in past month
Loading...
Magnetic Eyelashes, Reusable Magnetic Eyelashes with Applicator and Mirror, No Eyelash Glue, No Eyeliner & Lightweight (3 Pairs)

Magnetic Eyelashes, Reusable Magnetic Eyelashes with Applicator and Mirror, No Eyelash Glue, No Eyeliner & Lightweight (3 Pairs)

(220)
$15.88
FREE delivery Wed, Aug 20 on your first order
Loading...
Space Exploration Shuttle Building Toys, 6-in-1 Rocketship STEM Toys for 6 8 9 10 11 12 Year Old, Aerospace Model with Rocket and Launcher Building Block Kit Best Gift for Boys

Space Exploration Shuttle Building Toys, 6-in-1 Rocketship STEM Toys for 6 8 9 10 11 12 Year Old, Aerospace Model with Rocket and Launcher Building Block Kit Best Gift for Boys

(101)
$19.99
FREE delivery Sat, Jun 14 on your first order