liveBook · Manning

DeepEval

As explained in Machine Learning Platform Engineering

DeepEval is an open-source evaluation framework for testing and measuring the quality of large language model applications.

DeepEval is an open-source framework for testing LLM applications through semantic evaluation rather than exact string matching. It supports production quality checks when probabilistic outputs make traditional assertions unreliable, assessing whether responses are correct, appropriately scoped, complete, and aligned with policy. section 13.2.1 section 13.0

A practical DeepEval integration typically combines configuration, application adaptation, and metric design:

  • Configure Gemini as the consistent LLM judge for evaluations that require model-based assessment. section 13.2.1
  • Wrap asynchronous application calls for synchronous tests, reuse one application instance, extract response text, and handle failures without breaking test execution. section 13.2.1
  • Define G-Eval criteria around the behavior that matters, then bind inputs and outputs to test cases with explicit score thresholds. section 13.2.1

Testing a security boundary

A G-Eval metric can judge whether an application deflects requests for API keys and passwords, avoids revealing sensitive information, and redirects the user to appropriate channels. Setting a threshold such as 0.9 turns that policy into an automated test expectation.

How Machine Learning Platform Engineering covers it

How deep it goes
Builds evaluator configuration, async test adaptation, custom criteria, thresholds, and multi-metric cases, without detailing framework internals.
Examples
Uses security-boundary deflection tests and combined correctness, relevance, and completeness metrics.
What it assumes
Assumes an LLM application and asynchronous testing context, while supplying a synchronous helper pattern for bridging the two.
What you can do after
Apply it via G-Eval and built-in metrics to automate semantic, policy, correctness, relevance, and completeness checks.
How it connects
Connects semantic evaluation with LLM-as-judge methods, G-Eval, async programming, answer relevancy, safety guardrails, and prompt injection defense.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.