Building Agentic RAG From Scratch in Pure Python

From the creator

Want to start freelancing? Let me help: https://go.datalumina.com/HbJnpc8 Want to learn real AI Engineering? Go here: https://go.datalumina.com/XlYLRjP 🔗 GitHub Repository https://github.com/daveebbelaar/ai-cookbook/tree/main/knowledge/agentic-rag ⏱️ Timestamps 00:00 Introduction to Agentic RAG 00:48 Semantic vs. Agentic RAG 02:12 Tool Definitions and Setup 04:11 Listing Files 06:01 Searching for Patterns 10:19 Reading Files 12:37 Building the Agent 13:31 Debugging the Agent 18:34 Structured Output 20:33 Production Considerations 25:19 Conclusion and Next Steps 📌 Description Learn how to build an agentic RAG system from scratch in pure Python without relying on heavy frameworks. This tutorial walks through creating custom tools for listing, searching, and reading markdown files, then connecting them to an AI agent using Pydantic AI for iterative tool calling and self-correction. Whether you're moving past basic semantic RAG or integrating private company data into LLMs, this hands-on guide covers the full workflow from core code to production deployment. 👋🏻 About Me Hi! I'm Dave, AI Engineer and founder of Datalumina®. On this channel, I share practical tutorials that teach developers how to build production-ready AI systems that actually work in the real world. Beyond these tutorials, I also help people start successful freelancing careers. Check out the links above to learn more!

Stop watching · start building
Matched to Python

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.