Abekus — AI learning and job matching platform logo

GenAI Engineering: RAG Systems

  • 151 lessons
  • About 17 hours
  • Self-paced
  • Certificate on completion
0%Complete
Guided Mode

Start with lesson 1

151 lessons. The first one is free, no signup needed.

🗺️ Your learning path
Limitations of Pure LLMs
What RAG Adds
RAG vs Alternatives

What you'll learn

  • Reason about when RAG is the right tool — its tradeoffs vs long-context stuffing, fine-tuning, and tool calling — and trace a request through the full indexing-then-query pipeline including its common failure surfaces.
  • Design chunking strategies — fixed-size, recursive, sentence-aware, semantic, markdown-structure-aware, contextual chunking — and reason about chunk-size tradeoffs (precision vs context, overlap, embedding-model token caps, special handling for tables and code).
  • Choose embedding models for retrieval — OpenAI text-embedding-3, sentence-transformers, BGE and E5 families, domain-specific and multilingual — and recognise embedding quality issues (lexical-semantic gap, domain mismatch, OOV jargon).
  • Run similarity search at scale — distance metric choice (cosine, dot product, euclidean), ANN indexes (HNSW, IVF, PQ), the recall-latency tradeoff; combine dense with BM25 via hybrid retrieval and reciprocal rank fusion.
  • Transform queries before retrieval — HyDE hypothetical-document embeddings, step-back prompting, subquery decomposition, multi-query paraphrasing with score aggregation, and conversational rewriting with follow-up detection.
  • Re-rank and filter retrieved candidates — bi-encoder vs cross-encoder rerankers (Cohere, MS-MARCO), metadata and permission filtering, MMR with lambda tradeoff for diversity, near-duplicate removal.
  • Generate grounded answers from retrieved context — "answer only from context" prompting, citation enforcement, "I don't know" fallback, context truncation and ordering, lost-in-the-middle mitigation, chunk compression.
  • Evaluate RAG systems — retrieval metrics (recall@k, precision@k, MRR, NDCG), RAGAS faithfulness and context-precision/recall, LLM-as-judge end-to-end evaluation, regression test sets, hallucination detection.
  • Apply advanced RAG patterns — knowledge-graph RAG and GraphRAG, SQL RAG over tabular data, self-RAG with critique, corrective RAG, iterative agentic retrieval; specialised variants for tables, code, long documents, and multi-tenant isolation.
  • Run RAG in production — embedding and vector-DB cost-latency budgets, retrieval caching, incremental indexing and stale-embedding detection, tenant isolation, PII handling, and indirect-injection defence on retrieved content.

About this course

Most RAG demos are 50 lines of LangChain on a five-document toy corpus. GenAI Engineering: RAG Systems teaches what changes when you scale to a million chunks, multi-tenant access, latency budgets, and embedding drift — through 1,500+ practice MCQs with instant explanations on every wrong answer. Chunking, embedding choice, hybrid retrieval, reranking, grounded generation, RAGAS evaluation, GraphRAG, agentic RAG, indirect-injection defence — every layer of the production-RAG stack.

This is the third module of the Generative AI Engineering track on Abekus. It assumes you have completed LLM Foundations and Prompt Engineering — many retrieval and grounding patterns only make sense once tokenization, decoding, and prompting are in place. The fourth and final module, AI Agents, follows.

Learning path

Generative AI Engineering

The job-ready Generative AI track on Abekus — four MCQ-driven courses, ~6,400 practice questions, ~72 hours total. Covers LLM Foundations (how language models work internally), Prompt Engineering (reliable prompting patterns), RAG Systems (retrieval-grounded generation), and AI Agents (autonomous tool-using systems). Built for engineers pivoting to AI Engineer roles, AI/ML interview candidates, and self-taught builders. Modules can be taken standalone, but the intended order is LLM Foundations → Prompt Engineering → RAG Systems → AI Agents. Finishing all four unlocks the series certificate. No prior AI or ML background required. Python familiarity helps but is not assumed.

4 courses·6,502 practice MCQs·103h of content

Frequently asked questions