The Simplest RAG Stack That Actually Works (Complete Guide)

From the creator

Most actually useful AI agents leverage some form of RAG - it's how our agents can search through our documents and data in real time. In this video, I'll show you from the ground up how to build a hybrid RAG agent in Python with a simple and VERY effective tech stack - Pydantic AI + MongoDB + Docling. This agent can ingest all common file formats - PDFs, Word docs, markdown, etc. and immediately search through it all to answer any question we have. It uses both keyword and semantic search so it can handle a wide variety of questions with high accuracy. This is the kind of AI agent you can also use as the foundation for ANY RAG agent you're looking to build, so please feel free to use this as a template as well - link below! ~~~~~~~~~~~~~~~~~~~~~~~~~~ If you want to get started building RAG Agents with a simple to use and fast database, check out MongoDB: https://fandf.co/3XKF8jG Thanks again to them for working with me on this video! It's always a pleasure working with the teams behind products I genuinely care about using. ~~~~~~~~~~~~~~~~~~~~~~~~~~ - The Dynamous Agentic Coding Course is now FULLY released - learn how to build reliable and repeatable systems for AI coding: https://dynamous.ai/agentic-coding-course - Pydantic AI: https://ai.pydantic.dev/ - Docling: https://docling-project.github.io/docling/ - GitHub repo for the MongoDB Agent: https://github.com/coleam00/MongoDB-RAG-Agent - MongoDB guide to building RAG AI agents: https://fandf.co/48t6MrB - MongoDB $rankFusion: https://fandf.co/48IAoAd ~~~~~~~~~~~~~~~~~~~~~~~~~~ 00:00 - Introducing Hybrid RAG 00:52 - The Complete Agent Template for the Video 01:44 - Our Tech Stack - MongoDB + Pydantic AI + Docling 04:45 - Pros and Cons of Semantic and Keyword Search 06:41 - Live Demo of Our Hybrid RAG AI Agent 10:43 - Hybrid RAG is a Form of Agentic RAG 11:51 - When to Use Semantic vs. Keyword Search 14:42 - Deep Dive: How Hybrid RAG Works with MongoDB 20:40 - Understanding Reciprocal Rank Fusion 22:49 - Final Overview of the RAG Flow (it's Fast) 23:44 - Outro ~~~~~~~~~~~~~~~~~~~~~~~~~~ Join me as I push the limits of what is possible with AI. I'll be uploading videos weekly - at least every Wednesday at 7:00 PM CDT!

Stop watching · start building
Matched to AI Agents

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026
Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.