
Learn how to test any rag implementation, covering setup, tooling, a hands-on rag pipeline with retriever, augmentor, and generator, plus coherence and faithfulness evaluation.
Explore how to build and test a rag pipeline with a vector database, embeddings, and evaluation framework to ensure answer relevancy, context precision, and technical accuracy in a chatbot.
Install python via the Microsoft Store to automatically resolve dependencies, verify with python --version in both the Microsoft Store and the terminal, and avoid manual path edits.
Learn how to install the Python pip utility, download get-pip.py, run it to install pip, and use pip install to add dependencies like openai for hands-on demos.
Install node.js and npm from nodejs.org using the prebuilt installer, verify with node -v and npm -v, and ensure your path includes node and npm bin paths.
Install Visual Studio Code on Windows 11, import the repository, and configure projects with essential extensions. Enable Maven for Java, debugger, and GitHub Actions for continuous testing and integration.
Create a new secret API key from the API keys panel, name it demo, and copy the key for all demos and ChatGPT interactions. Keep it private; do not share.
Understand how ai works as a predictive machine built from a data model, neural networks, and embeddings and semantics shaping the next token output.
Understand the two main types: task-specific weak AI and general-purpose AI, with examples like computer vision and ChatGPT, and contrast them with artificial general intelligence.
Discover how ai introduces a new layer in a traditional decoupled app, integrating model APIs, orchestration, and a vector database for RAG.
Foundation models are versatile ai models trained on diverse data with a very good algorithm and transformer architecture, and large language models are the language-focused subset of these models.
Select unlabeled data to pre-train a foundation model using self-supervised learning, then optimize, evaluate, deploy, and monitor drift and bias with prompt engineering, retrieval augmented generation, and fine-tuning.
Fine-tune foundation models by prompting, retraining on company data, and adjusting inference parameters like temperature, top k, and top p, while using RAG to extend knowledge without retraining.
Understand the data lifecycle for AI models, from data collection and cleaning to transformation, storage, and quality checks, and learn how data quality, bias, and privacy shape model safety.
Explore three types of AI and LLM applications: reuse via front-end prompts and API calls; augment with rag and data; and build from scratch, weighing cost and complexity.
Discover how retrieval augmented generation extends model memory with external data, reduces hallucinations, and uses vector databases and embeddings. Learn the three-part rag flow: retrieval, augmentation, and generation.
Explore how hallucinations arise in RAG systems and implement truthfulness testing to verify AI outputs against verifiable sources.
Explore four popular rag techniques—standard rag, corrective rag, speculative rag, and graph rag—plus knowledge graphs and multi-document k-top scoring.
Explore rag (retrieval augmented generation) applications, building chatbots that answer order queries and policy faqs by querying vector databases with embeddings and a retriever–generator pipeline.
Clone the rag test repository from GitHub, create a rag test folder, install dependencies from requirements.txt with pip, and prepare the environment (venv or conda) for a simple rag pipeline.
Implement a retriever with faiss using mupdf for vector embeddings and chunking, embed documents with an OpenAI embedded model, and store them in an on-disk vector database for interactive retrieval.
Learn how prompts are tokenized into tokens, converted into vector embeddings, and retrieved from documents by chunking with a defined size and overlap for effective top-k results.
Explore implementing an augmentor in a retrieval-augmented generation workflow by combining a system prompt with the top three retrieved contexts to guide a foundation model.
Demonstrates a complete rag workflow by implementing a retriever, augmenter, and generator that feed a master prompt into a large language model, then test performance with metrics.
Master temperature, top P, and top K to control model randomness and output diversity for stable OpenAI applications.
Explore how to retrieve top k documents or chunks from a knowledge base in a rag system, using a vector database and cosine similarity to fetch the most relevant documents.
In RAG, documents split into independent, overlapping chunks with IDs; a retriever searches a chunk pool by cosine similarity, returning top chunks regardless of document.
Identify the most relevant document, retrieve its top three chunks, and use a two-stage rag approach with metadata and cosine similarity for accurate answers.
Prepare your rag pipeline by validating infrastructure, converting documents to text, and performing chunking, tokenization, embedding, and vector storage before testing the retriever, augmentor, and topK/topP.
Explore how a vector database uses cosine similarity on token embeddings to retrieve top-k document chunks, and test retriever performance with precision and recall.
Explore augmentation testing for RAG by combining user prompts, retrieved top-k chunks, and a system prompt into a well-formatted, larger prompt for the model.
Test the generation stage by feeding prompts into a llm, assess precision, recall, and truthfulness, and verify contextual accuracy using the ragas library and deep eval.
Explore manual testing of rag pipelines, using human evaluation and a ground truth test oracle to probe questions like speed dial behavior on devices, highlighting slow, prototyping only limitations.
Learn automated API validations with Pytest to build fast, replicable tests that probe responses for keywords, while addressing non-deterministic AI and flaky results.
Explore using a large language model as a judge to validate a rag pipeline, combining manual and automated evaluations, and assess translation, summarization, coherence, and relevance with the evaluate library.
Explore specific query synthesizers in rag testing, using precise, single-hop retrieval to extract named entities from document chunks, with contrast to abstract queries.
Explore abstract query synthesizers in retrieval-augmented generation, focusing on single-hop grounding in a single chunk and using generation to infer context from hints rather than exact facts.
Master multi-hop reasoning for complex, specific queries by navigating linked information chunks from the retriever and validating information across sources.
Explore multi-hop abstract query synthesizers for RAG testing, retrieving information across multiple document chunks and grounding abstract meanings in the source materials.
Explore golden nugget metrics in rag testing by examining how retrievers fetch chunks from a knowledge base, identify golden nuggets, and evaluate recall and support scores.
Learn how to construct the ground truth table as the reference for evaluating entity recognition, then compare predicted tables to compute F1 score and accuracy using a test oracle.
Define accuracy as the proportion of correct predictions over total predictions to gauge model performance. Beware imbalanced data, as small, unrepresentative tests can mislead due to garbage in, garbage out.
Define precision as the ratio of true positives to all identified positives, and explore why false positives matter in spam filtering and other costly deployments.
Recall equals true positives divided by true positives plus false negatives, showing how often positives are detected. It matters when missing positives is costly (medical diagnosis, fraud).
Learn how the F1 score harmonically averages precision and recall to evaluate models, especially with imbalanced classes, using a cancer patient example that highlights true positives, precision, and false negatives.
Explore the ragas validation framework for retrieval, learn to install ragas, and evaluate your retrieval-based llm applications with metrics like context precision, context recall, and bleu/rouge comparisons against a reference.
Explore context precision, a rag metric that measures the proportion of relevant chunks in retrieved context, illustrated with a penicillin discovery example and true positives over retrieved chunks.
Learn to test context precision with the ragas evaluate library, building a ground-truth dataset and measuring answer relevancy to achieve a context precision score.
Explore context recall in RAG metrics, explaining how it measures retrieval completeness of relevant information versus precision, with a penicillin example and practical measurement approaches.
Demonstrates context recall in a python demo using ragas, showing reference, context, and answer, with a 0.5 threshold and a context recall average of 0.857.
Explore RAG metrics like context relevance, precision, recall, and relevancy, and learn how this library uses generated questions and cosine similarity of embeddings judged by an LLM.
See how the RAGAs Python demo measures context relevance by applying the ragas metric to a ground-truth reference, using cosine similarity and LM-based judgments.
Explore faithfulness as a RAG metric for truthfulness, linking hallucination risk to retrieved context. Identify claims, verify them against the reference context, and compute the context-supported ratio.
Explore faithfulness validation in RAG testing, examining how retriever results, contexts, and references influence truthfulness scores, and how chunk size and overlap affect results.
Explore the retrieval, augmentation, and generation stages of a rag system, validate retrieval with a vector database, integrate ChatGPT with context, and evaluate context recall and precision.
Evaluate rag pipelines using fluency, coherence, relevance, and concision, with an LLM as judge and deep eval benchmarks for reliable evaluation.
https://deepeval.com/docs/getting-started
Set up a python environment with a virtual env and the requirements.txt, install dependencies, and run your deep eval test; define a generative metric and threshold to judge correctness.
Create a generative metric in a rag pipeline using an lm as judge, comparing input and output with prompts, ground truth, and test cases, and return results to evaluation framework.
Implement an html report to visualize test results, exportable as csv or xml for ci/cd, and display per-test metrics like fluency, coherence, and relevance.
Master the art of evaluating Retrieval-Augmented Generation (RAG) systems with the most practical and complete course on the market — trusted by over 25,000 students and backed by 1,000+ 5-star reviews.
Whether you're building LLM applications, leading AI QA efforts, or shipping reliable MVPs, this course gives you all the tools, code, and frameworks to test and validate RAG pipelines using DeepEval and RAGAS.
What You’ll Learn
Understand the Basics of LLMs and how they are applied across industries
Explore different LLM Application Types and use cases
Learn the difference between Weak AI and Generative AI
Deep-dive into how RAG works, and where testing fits into the pipeline
Discover the types of RAG Testing: factuality, hallucination detection, context evaluation, etc.
Get hands-on with ready-to-use code from Day 0 — minimal setup required
Master classic ML metrics (Accuracy, Recall, F1) and where they still matter
Learn RAG-specific metrics:
Context Recall
Context Accuracy
Answer Relevancy
Truthfulness
Fluency, Coherence, Tone, Conciseness
Build custom test cases and metrics with DeepEval and RAGAS
Learn how to use RAGAS and DeepEval open-source frameworks for production and research
Validate MVPs quickly and reliably using automated test coverage
Who is This For?
AI & LLM Developers who want to ship trustworthy RAG systems
QA Engineers transitioning into AI testing roles
ML Researchers aiming for reproducible benchmarks
Product Managers who want to measure quality in RAG outputs
MLOps/DevOps professionals looking to automate evaluation in CI/CD