✕
Artificial Intelligence & Automation

Context Engineering and Retrieval-Augmented Generation (RAG) Basics Training

Introduces the fundamentals of context engineering and retrieval-augmented generation (RAG) — how to feed AI models accurate, relevant information so their answers are grounded in your own data rather than generic training knowledge.

⏱ 5 Days 📡 Online · Live 🎯 Beginner From KES 80,000

About This Course

An AI model's training data has a cutoff date and no knowledge of your organisation's internal documents, policies or current data — which is exactly why confident, plausible-sounding but wrong answers are so common. Retrieval-augmented generation solves this by retrieving relevant information from your own documents and feeding it into the model's context at the moment of answering, so responses are grounded in real, current source material rather than the model's general training.

This five-day, hands-on introduction teaches participants the fundamentals of context engineering — how to structure, chunk and retrieve information so a model actually uses it well — and walks through building a working RAG system from document ingestion through retrieval to answer generation. No machine learning background is assumed; the course focuses on the practical engineering decisions that determine whether a RAG system gives reliable answers or confidently wrong ones.

Participants leave having built a working RAG prototype over a real document set, along with a clear understanding of where RAG systems commonly fail and how to design around those failure modes.

Who Should Attend

Learning Objectives

Course Modules

Module 1: Why Models Need Retrieval

  • Training data limitations and knowledge cutoffs explained
  • Why models answer confidently even when wrong
  • What RAG adds that a model alone cannot provide
  • Comparing RAG to fine-tuning, explained simply
  • Common misconceptions about how RAG works
  • Setting realistic expectations for a first RAG build

Module 2: How Retrieval-Augmented Generation Works

  • The RAG pipeline end to end, explained plainly
  • Embeddings and semantic search, explained without heavy maths
  • The role of a vector database in retrieval
  • How retrieved content reaches the model's context
  • Why retrieval quality determines answer quality
  • Overview of common RAG tooling options

Module 3: Preparing Documents for Retrieval

  • Selecting which documents belong in a knowledge base
  • Cleaning and formatting documents for better retrieval
  • Handling tables, images and structured data
  • Removing outdated or conflicting source material
  • Organising documents by topic or domain
  • Preparing a sample document set for the course build

Module 4: Chunking Strategies

  • Why chunk size and overlap affect retrieval quality
  • Fixed-size versus semantic chunking approaches
  • Handling long documents and structured sections
  • Testing different chunking strategies on the same content
  • Common chunking mistakes that hurt retrieval
  • Settling on a chunking approach for your build

Module 5: Building a Basic Retrieval Pipeline

  • Setting up document ingestion into a vector store
  • Generating and storing embeddings for your content
  • Running a first retrieval query and reviewing results
  • Tuning the number of retrieved chunks per query
  • Handling retrieval across multiple document types
  • Troubleshooting weak or irrelevant retrieval results

Module 6: Context Engineering Fundamentals

  • What context engineering means beyond prompt writing
  • Structuring retrieved content for the model to use well
  • Instructing the model to stick to retrieved information
  • Handling cases where retrieval finds nothing relevant
  • Balancing context length against cost and performance
  • Iterating context design based on test results

Module 7: Writing Effective RAG Prompts

  • Instructing the model to cite or reference sources
  • Handling conflicting information across retrieved chunks
  • Preventing the model from answering outside the retrieved context
  • Formatting answers for the intended audience
  • Testing prompts against tricky, ambiguous questions
  • Iterating prompts based on observed failures

Module 8: Evaluating RAG System Quality

  • Assessing whether answers are genuinely grounded in sources
  • Building a simple test set of representative questions
  • Spotting hallucination despite retrieval being in place
  • Measuring retrieval relevance separately from answer quality
  • Gathering user feedback on real-world usage
  • Iterating the system based on evaluation results

Module 9: Common Failure Modes and Mitigations

  • Retrieval returning irrelevant or outdated content
  • The model ignoring retrieved context and answering from training knowledge
  • Handling questions that span multiple documents
  • Stale knowledge bases and update processes
  • Over-reliance on RAG for questions needing reasoning, not retrieval
  • Designing fallbacks for low-confidence answers

Module 10: Planning a Real Implementation

  • Scoping a RAG project for a real internal knowledge base
  • Estimating effort, cost and maintenance requirements
  • Build versus buy considerations for RAG tooling
  • Data governance and access control for sensitive documents
  • Planning an ongoing content maintenance process
  • Final prototype demonstrations and next-step planning

Requirements & Prerequisites

No machine learning or coding background is required, though basic comfort with spreadsheets or simple scripting is helpful. Participants should bring or identify a sample set of documents to work with during the hands-on exercises.

Training Methodology

Organisational Benefits

Where Is Context Engineering and Retrieval-Augmented Generation (RAG) Basics Training Offered?

This course runs in-person across: Nairobi, Mombasa, Naivasha, Kisumu, Nakuru, Kigali, Dar es Salaam, Arusha, Zanzibar, Cape Town, Johannesburg, Pretoria, Abuja, Lagos, Accra, Addis Ababa, Dubai, Riyadh, Kampala, plus Live Virtual (online) cohorts. Browse live dates for your city below.

Upcoming Schedules

LocationFormatDatesPrice
Nairobi, Kenya In-Person 11 Jan 2027 – 15 Jan 2027 KES 105,000
Mombasa, Kenya In-Person 11 Jan 2027 – 15 Jan 2027 KES 115,000
Naivasha, Kenya In-Person 11 Jan 2027 – 15 Jan 2027 KES 115,000
Kisumu, Kenya In-Person 11 Jan 2027 – 15 Jan 2027 KES 115,000
Nakuru, Kenya In-Person 11 Jan 2027 – 15 Jan 2027 KES 115,000
Kigali, Rwanda In-Person 11 Jan 2027 – 15 Jan 2027 USD 1,900
Dar es Salaam, Tanzania In-Person 11 Jan 2027 – 15 Jan 2027 USD 2,300
Arusha, Tanzania In-Person 11 Jan 2027 – 15 Jan 2027 USD 2,100
Zanzibar, Tanzania In-Person 11 Jan 2027 – 15 Jan 2027 USD 2,500
Cape Town, South Africa In-Person 11 Jan 2027 – 15 Jan 2027 USD 3,800
Johannesburg, South Africa In-Person 11 Jan 2027 – 15 Jan 2027 USD 3,500
Pretoria, South Africa In-Person 11 Jan 2027 – 15 Jan 2027 USD 3,300
Abuja, Nigeria In-Person 11 Jan 2027 – 15 Jan 2027 USD 2,800
Lagos, Nigeria In-Person 11 Jan 2027 – 15 Jan 2027 USD 2,500
Accra, Ghana In-Person 11 Jan 2027 – 15 Jan 2027 USD 3,800

+25 more dates — view live schedule →

Frequently Asked Questions

Do I need a machine learning background to take this course?

No — the course is designed as a practical introduction for non-specialists, with technical concepts explained in plain language and applied through hands-on building.

Will I build a real RAG system during the course?

Yes, the course is hands-on throughout, and you build and test a working RAG prototype over a document set of your choosing.

What is the difference between RAG and fine-tuning a model?

RAG retrieves relevant information at the moment of answering without changing the model itself, while fine-tuning retrains the model on new data — the course explains both and why RAG is usually the more practical starting point.

Is this course delivered live online?

Yes, it is delivered as a live online programme so you can build alongside the instructor using your own documents in real time.

Is a certificate issued?

Yes, a TrainifyComplex certificate of completion is issued at the end of the programme.

Request a quote or in-house training

Tell us about your team and we will reply within one working day with dates, pricing and a tailored proposal for Context Engineering and Retrieval-Augmented Generation (RAG) Basics Training.

View Live Schedule & Book →