Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

  1. AI Academy
  2. /
  3. Path 3
  4. /
  5. Retrieval and Knowledge Systems
AdvancedFree coursePath 3 · Documents, Retrieval and Memory · Part 2 of 3

Retrieval and Knowledge Systems

Build retrieval your agents can trust over a case's documents and a company's reference library, and measure that it finds what it should.

2 modules · 8 lessons~24 hoursUpdated 2026-10-30Certificate included

See the curriculum
  • Lessons8
  • Quizzes8
  • Sources48
  • Of study~24h

About this course

About this course

How to get the right passages in front of an agent: choosing and compressing embeddings, chunking contracts and records along their structure, ANN indexes and vector databases with per-tenant isolation and fresh indexes, and the retrieval evals that keep every later decision honest. The second module adds hybrid BM25 search, rank fusion and rerankers, agentic retrieval with grep and file tools, knowledge graphs and GraphRAG, and the cost and accuracy evidence on long context versus RAG. The running example is answering questions across one case's documents and across a library of reference documents. Code is Python; exercises run on your Claude subscription.

About the running example

The examples follow a fictional property-law (conveyancing) firm in England and Wales: answering questions across one property transaction (title register, lease, searches, replies to enquiries) and across the firm's precedent library. It's a case study, chosen because its documents are long, structured and high-stakes. You don't need a legal background, and the same patterns apply to contracts, insurance claims, invoices, support tickets or patient records. In the lessons, a matter is one client's case and a solicitor is the lawyer who signs work off.

Outcomes

What you'll learn.

  1. 1Choose an embedding model, dimension and precision on evidence from your own documents, and compute the index's storage and embedding cost
  2. 2Chunk long documents along their section and clause structure, and add document context with contextual retrieval or late chunking
  3. 3Configure ANN indexes and a vector database for the recall and latency you need, with metadata filters, tenant isolation and an index that stays fresh
  4. 4Build a labelled query set from real user questions and measure recall@k, MRR, nDCG and answer groundedness
  5. 5Combine BM25 and dense retrieval with reciprocal rank fusion and a reranker, and give an agent search, grep and read tools for multi-hop questions
  6. 6Decide between RAG, long context, agentic search and GraphRAG for a given workload using cost and accuracy evidence
Curriculum

2 modules, 8 lessons.

9h 30m of lessons

  1. Module 1 · 4 lessons · 4h 50m

    Building the index

    From parsed documents to a measured search index: embeddings in practice, structure-aware and contextual chunking, ANN indexes and vector databases with filtering, tenancy and freshness, and the evals that tell you whether retrieval works.

    1
    1. 1Embeddings in practiceHow to choose an embedding model for specialist retrieval, and how dimensions, Matryoshka truncation and quantisation trade quality against memory, latency and cost.1h 10m7-question quiz7 sources
    2. 2Chunking structured documentsHow to cut contracts, records, reports and correspondence into retrievable units along their own structure, and how contextual retrieval and late chunking give each chunk back the context it lost.1h 10m6-question quiz5 sources
    3. 3Vector indexes and databasesHow HNSW and IVF indexes trade recall for latency, how filters and tenant isolation interact with them, how to choose between pgvector, Turbopuffer, LanceDB and Qdrant, and how to keep an index fresh as documents change.1h 15m7-question quiz6 sources
    4. 4Measuring retrievalHow to build a labelled query set from real user questions, compute recall@k, MRR and nDCG, and check that answers are grounded in what was retrieved.1h 15m6-question quiz6 sources
  2. Module 2 · 4 lessons · 4h 40m

    Retrieval that reasons

    Beyond one vector search: hybrid keyword and dense search with fusion and reranking, agents that search for themselves, knowledge graphs for questions that span documents, and when to skip retrieval and use long context instead.

    2
    1. 5Hybrid search and rerankingWhy keyword search still matters for precise, specialist text, how BM25 scores documents, how reciprocal rank fusion combines keyword and dense results, and when a cross-encoder or LLM reranker is worth its latency.1h 15m7-question quiz6 sources
    2. 6Agentic retrievalHow to let an agent run its own searches with search, grep and read tools, follow cross-references across a case's documents, and stay within a token and latency budget.1h 15m7-question quiz6 sources
    3. 7Knowledge graphs and GraphRAGWhen questions are about relationships and aggregates rather than passages, how a schema'd knowledge graph built from verified records differs from LLM-extracted GraphRAG, what each costs, and what the evidence says about when they're worth it.1h 5m6-question quiz6 sources
    4. 8Long context versus RAGWhen to put a whole case file in the prompt and when to retrieve, using current prices, prompt caching and the research evidence on accuracy, and how to route between the two.1h 5m6-question quiz6 sources
Capstone

A measured retrieval service for cases and reference documents

Build a retrieval service over a synthetic set of case files and a reference library, with structure-aware chunking, a filtered and isolated index, hybrid search with reranking, agentic and long-context paths, and a labelled eval that justifies every choice in a recommendation memo.

Open the project brief
Certificate · free

Finish it. Get certified.

Complete every lesson of Retrieval and Knowledge Systems and you get a certificate with your name on it. Free, like the course.

  • A public page with a certificate ID anyone can check
  • Download it as a PDF
  • Add it to LinkedIn in one click
It also counts towards the Documents, Retrieval and Memory path certificate, for finishing all 3 courses in Path 3.
Sample
FAQ

Retrieval and Knowledge Systems, answered.

Is Retrieval and Knowledge Systems free?

Yes, for everyone: all 8 lessons, 8 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.

Do I get a certificate?

Yes. Finish every lesson of Retrieval and Knowledge Systems and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.

How long does Retrieval and Knowledge Systems take?

About 24 hours: 2 modules and 8 lessons, at your own pace. Your progress is saved to your account, on every device.

Which roles is it for?

It's on the Forward Deployed Engineer roadmap: the courses those jobs ask for, in the order to take them.

What do I need before I start?

Comfortable writing Python, and with databases, indexes and distributed-systems basics. LLMs for Engineers, especially Tokens and embeddings and Context windows, KV cache and caching. Agent Foundations, especially Context engineering. Helpful: Document Ingestion Pipelines, which produces the structured documents this course indexes.

Role roadmaps

Part of this roadmap

  • Become a Forward Deployed Engineer

Before you start

Prerequisites

  • Comfortable writing Python, and with databases, indexes and distributed-systems basics
  • LLMs for Engineers, especially Tokens and embeddings and Context windows, KV cache and caching
  • Agent Foundations, especially Context engineering
  • Helpful: Document Ingestion Pipelines, which produces the structured documents this course indexes
Path 3

More in Documents, Retrieval and Memory.

See the whole path
Next in Documents, Retrieval and Memory · Course 3Agent MemoryMake agents remember the right facts about a customer and a case for weeks, keep each case's memory sealed, and prove that memory helps rather than harms.
  • IntermediateDocument AI · Data pipelines

    Document Ingestion Pipelines

    Turn a case's PDFs, scans, forms and emails into verified, structured, privacy-safe data your agents and search can trust.

    8 lessons ~16hFree