Skip to main content

Course

RAG in Python: Build Every Step, Watch It Run

Build a RAG script step by step in plain Python and watch every line run. Then swap in real embeddings and build a helper for your own notes.

  • Level: Intermediate
  • Duration: 3.5 hours
  • Type: Interactive
  • Language: English
Enroll for FREE

Course Content

  • 1.1 Reading a RAG script step-by-step
  • 1.2 Watching a RAG helper run

  • 2.1 Counting words into numbers
  • 2.2 Scoring how close texts are

  • 3.1 Storing notes with their numbers
  • 3.2 Finding the closest notes
  • 3.3 Why the search picks wrong

  • 4.1 Handing the notes to the model
  • 4.2 Saying the handbook has no answer

  • 5.1 Real embeddings from a model
  • 5.2 Running rag.py on the handbook

  • 6.1 Your own helper
Start this Course
Get Certified

Frequently asked questions

You can start RAG in Python with a 7-day free trial. Click "Enroll for FREE" to begin.

About 3.5 hours, across 12 lessons.

RAG in Python is an intermediate course. Prerequisites: Writing short Python functions with lists, dictionaries and loops.

Everything runs in your browser, so you can start without an API key or any installs.