Answering Questions From Your Own Documents

Stephen Gruppetta 21 Lessons 8h 11m Updated intermediate ai

In this course, you’ll build a feature that answers questions from your own documents instead of from a model’s memory. You’ll follow a board-game café whose players argue about the rules at the tables, and build its rules desk: a script that searches the café’s eight rulebooks and answers a player’s question from the right pages, with the game and page cited.

You’ll learn how to:

  • Turn text into vectors with a local embedding model and rank texts by meaning
  • Split long rulebooks into labeled chunks that fit the model and keep each rule whole
  • Embed every chunk once, search them, and catch exact card and space numbers that meaning alone misses
  • Answer from the top chunks with checked citations, and say when the rulebooks don’t cover the question
  • Debug a wrong answer by looking at what retrieval sent before touching the prompt

Embeddings run locally for every learner, and only the answer goes to your provider, OpenAI or Anthropic. The lessons’ real runs were made with OpenAI.

What’s Included:

  • 21 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 4 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

Each tutorial at RealJS is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

← Browse All Courses