Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
LlamaIndex RAG in Python: Chat With Your Company Docs
New
Rating: 5.0 out of 5(1 rating)
1 students

LlamaIndex RAG in Python: Chat With Your Company Docs

Build a local docs assistant with Ollama: PDFs, chunks, chat memory, filters, evaluation, agents and tests. No API key
Created byAdi Tejus
Last updated 11/2026
English

What you'll learn

  • Build a local RAG assistant in Python with LlamaIndex and Ollama that answers from PDFs and documents with page sources
  • Control chunking, embeddings, prompts, top-k and similarity cutoffs, and tell retrieval problems from generation problems
  • Add chat memory for follow-up questions and metadata filters to search the right department's documents
  • Measure an assistant with a test set: hit rate, MRR, exact checks and LLM judges, and know their limits
  • Give a small agent tools (FunctionAgent + FunctionTool) and fix real tool-calling failures
  • Ship a tested 'chat with your company docs' app that runs on a normal laptop with no API key

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

8 sections • 9 lectures • 1h 44m total length
  • Chat with your company docs: the finished app, running locally5:51

    Overview. Chat with your company docs: the finished app, running locally. The finished project running first, then the plan for the course, what you need, and the course code (attached here as a download).

Requirements

  • Basic Python: functions, if statements, loops
  • A computer with Python 3.10+ and about 1 GB no-cost disk for Ollama and two small models (8 GB RAM is plenty)
  • No API keys or paid accounts

Description

This course contains the use of artificial intelligence.

LlamaIndex is the Python library built for one job: letting an AI answer questions from your own documents. In this course you build a 'chat with your company docs' assistant from an empty folder, using llama-index-core 0.14.25 and local models through Ollama (qwen2.5:0.5b and all-minilm, under 450 MB together). No API key, no card, and no document ever leaves your computer.

Every section ends with something you build and run: chat with a PDF in about 20 lines with sources; documents, nodes, chunk sizes and a saved index that loads in under half a second; three query engine fixes measured side by side; a chat engine with memory for follow-up questions; metadata filters by department; an evaluation with 14 test questions, hit rate, MRR and LLM judges; and a small agent with tools, plus the finished app with 17 passing tests.

The models are tiny on purpose, and you see their real mistakes word for word, then the fix and the measurement that proves it worked. Every output shown is from a real run (October-November 2026); the code, logs, practicals and cheat sheets are included. Narration is AI-voiced; the code, runs and results are real.

The course is 1 h 57 min of video in 8 sections. Section 1 is the overview and setup; the other sections are hands-on, and every program is run for real on screen. Each hands-on section comes with a one-page cheat sheet (PDF), a short quiz, a practical with starter and solution files and an assignment with a model answer; 5 coding exercises let you write the code yourself.

Who this course is for:

  • Python beginners who want to build their first chat-with-documents (RAG) app
  • Office developers and analysts asked to build an internal assistant over HR, finance or IT documents
  • Students who want a portfolio project with real accuracy numbers, not just a demo