AI for Engineers · Advanced

RAG and Vector Search Systems

Build retrieval-augmented generation systems with embeddings, vector databases, hybrid search, and reranking, and learn to evaluate and run them in production.
LevelAdvancedDuration16 hoursFormatLive online cohortSchedule8 live online sessions x 2 hours, including guided hands-on lab time in every session

Course overview

What you'll learn

RAG and Vector Search Systems covers the full path from raw documents to grounded answers. You work with embeddings, chunking strategies, and vector databases, then add hybrid search and reranking to improve relevance. The course closes with evaluation methods and the production concerns that decide whether a RAG system stays useful over time.

Who it's for

Developers, Data Engineers, ML Engineers, Solution Architects

By the end you will be able to

  • Explain how embeddings represent text and compare similarity metrics such as cosine similarity and dot product
  • Implement and compare chunking strategies on a real document set and justify the choice with measurements
  • Store and query vectors in pgvector, Qdrant, and Pinecone and describe the tradeoffs among them
  • Combine keyword and vector search with reciprocal rank fusion and apply a reranker
  • Measure retrieval quality with metrics such as recall at k and answer quality with groundedness checks
  • Describe the production concerns of a RAG system, including ingestion updates, access control, caching, and monitoring

Industry use cases

Examples from the work you do

Fintech

Answer analyst questions over policy and regulatory documents with cited passages and access controls on sensitive sources.

Healthcare IT

Search internal clinical guidelines and device manuals, returning source references so staff can verify every answer.

E-commerce

Combine keyword and semantic search over a product catalog and measure whether results improve for long, descriptive queries.

SaaS

Power a support assistant that retrieves from documentation and past tickets, with freshness handling when docs change.

Manufacturing

Index equipment manuals and maintenance logs so technicians can query procedures in natural language.

Telecom

Retrieve network runbooks and incident histories to help engineers diagnose recurring faults faster.

Syllabus

7 modules, 16 hours.

Every module ends with a hands-on lab you can apply to your own work.

01RAG Architecture and Embeddings2 hours

Understand why retrieval is used with language models and how embeddings make semantic search possible.

  • Why RAG: knowledge freshness, grounding, and limits of fine-tuning
  • The pipeline stages: ingest, chunk, embed, index, retrieve, generate
  • What an embedding is and how similarity is computed
  • Hosted embedding APIs versus open models in Sentence Transformers
  • Embedding dimensions, cost, and multilingual considerations
  • Failure modes: retrieval misses versus generation errors

Hands-on lab: Embed a small document set with a hosted and an open model, run the same ten queries against both, and compare the top results by hand.

02Ingestion and Chunking2 hours

Turn messy real-world documents into chunks that retrieve well.

  • Parsing PDFs, HTML, and office documents
  • Fixed-size, recursive, and structure-aware chunking
  • Chunk overlap and its tradeoffs
  • Attaching metadata such as source, section, and date
  • Handling tables and images in documents
  • Deduplication and incremental re-ingestion

Hands-on lab: Ingest a mixed PDF and HTML corpus with two chunking strategies and compare retrieval of ten reference questions under each.

03Vector Databases3 hours

Work hands-on with the main options for storing and querying vectors and learn how to choose among them.

  • pgvector: tables, vector columns, and SQL queries
  • Qdrant collections, payloads, and filtering
  • Pinecone indexes and namespaces
  • Approximate nearest neighbor search: HNSW and IVF concepts
  • Metadata filtering and its effect on recall
  • Choosing a store: operational fit, scale, cost, and existing stack

Hands-on lab: Load the same embedded corpus into pgvector, Qdrant, and Pinecone, run identical filtered queries, and record setup effort, latency, and result differences.

04Hybrid Search and Reranking2 hours

Improve relevance by combining lexical and semantic signals and reordering candidates.

  • Keyword search with BM25 and where it beats embeddings
  • Combining result lists with reciprocal rank fusion
  • Cross-encoder rerankers versus bi-encoder retrieval
  • Query rewriting and expansion
  • Choosing candidate set size and the final top k
  • Latency impact of each added stage

Hands-on lab: Add BM25 and a reranker to your baseline retriever and measure the change in recall and latency on a fixed query set.

05Generation, Citations, and Prompting3 hours

Build the answer-generation step so responses stay grounded in retrieved content.

  • Assembling context within token limits
  • Prompts that instruct the model to use only supplied sources
  • Returning citations and quoting passages
  • Handling no-answer and conflicting-source cases
  • Conversational RAG and follow-up question rewriting
  • Frameworks versus hand-written pipelines: LlamaIndex and LangChain

Hands-on lab: Build an answering service that returns citations, refuses when evidence is missing, and handles a follow-up question using conversation history.

06Evaluating RAG Systems2 hours

Measure retrieval and generation separately so you know what to fix.

  • Building a question set with reference passages
  • Retrieval metrics: recall at k, precision, and mean reciprocal rank
  • Generation metrics: faithfulness, answer relevance, and context relevance
  • Using Ragas and LLM-based judges, and their limits
  • Error analysis: sorting failures into retrieval, context, and generation causes
  • Tracking quality across changes

Hands-on lab: Create a 30-question evaluation set, score your pipeline with retrieval metrics and Ragas, and write a failure analysis with the top three fixes.

07Production Concerns2 hours

Prepare a RAG system for real users, changing data, and real constraints.

  • Keeping the index fresh with scheduled and event-driven updates
  • Document-level access control and multi-tenant filtering
  • Caching embeddings and answers
  • Monitoring retrieval quality and user feedback
  • Prompt injection through retrieved content
  • Index migrations when changing the embedding model

Hands-on lab: Add per-user access filters and an update job to your system, then test that a restricted document never appears for an unauthorized user.

Capstone project

Build something you'll use

Build and present a RAG system over a document collection of your choice: include a documented ingestion and chunking approach, a vector store with hybrid search and reranking, citation-based answers, an evaluation report with retrieval and generation metrics, and a short plan for freshness and access control in production.

Tools and requirements

What you'll work with

PythonPostgreSQL with pgvectorQdrantPineconeOpenAI Embeddings APISentence TransformersLlamaIndexLangChainRagasDocker

Prerequisites

  • Working Python, including virtual environments and REST API calls
  • Basic SQL and familiarity with Docker
  • Prior experience calling an LLM API is helpful but not required

Frequently asked questions

Before you book.

How do I book this course?

Select "Book a seat" and complete the short form. We email you the next cohort dates, timings and fees, and your seat is secured when you confirm. Requesting a seat is free.

How is the course delivered?

Live and online. The 16 hours run as 8 live online sessions x 2 hours, including guided hands-on lab time in every session, led by an instructor, with hands-on labs in every session.

What do I need to join?

Working Python, including virtual environments and REST API calls Basic SQL and familiarity with Docker Prior experience calling an LLM API is helpful but not required

Can my team take this course together?

Yes. We can run this course for a team with examples from your own roles and tools. Send a team request through the contact page.

Continue exploring

Related courses.

Live online

AI for Engineers

Building LLM Applications

Design, build, evaluate, and deploy applications on top of large language model APIs, with structured outputs, tool calling, streaming, and safety built in.

Intermediate14 hours

Ready to start?

Join the next RAG and Vector Search Systems cohort.

Book a seat
Book your seat