Evidently AI

Also known as: Evidently

On this page 7

Evidently AI is an open-source Python library and companion platform for evaluating, testing and monitoring machine learning models and large language model applications. In MLOps & deployment, it is the component that compares production data against a reference dataset and reports data drift, prediction drift, data quality problems and model performance decay in a form that both engineers and reviewers can read.

The project is often called simply Evidently. Its core library is released under the Apache 2.0 license, while a hosted and self-hosted platform adds dashboards, alerting and collaboration. Teams use it in notebooks during development, as quality gates in CI/CD pipelines and as a scheduled job that feeds an ML observability stack.

How Evidently evaluates models and data

Evidently works by computing metrics over one or two datasets: a current batch and, optionally, a reference batch such as the training or validation set. A data definition tells the library which columns are numerical, categorical, text, target, prediction or timestamp, because the choice of statistical method depends on the column type.

Results are packaged in a few core objects. Each object can be rendered as interactive HTML, exported as JSON or a Python dictionary, or sent to the monitoring platform as a stored snapshot.

ObjectPurposeTypical output
MetricComputes one measurement, such as drift for a columnA value, chart or table
PresetBundles related metrics for a common taskA ready-made report section
ReportRuns a set of metrics on given dataHTML, JSON or a snapshot
Test or conditionCompares a metric against a thresholdPass, fail or warning status
DescriptorScores each text row, for example length or sentimentA new per-row column
Core building blocks of the Evidently library

Presets are the usual entry point. A data drift preset checks every feature, a data summary preset profiles missing values and ranges, and classification or regression presets compute quality metrics once ground-truth labels arrive. For generative AI, text descriptors and LLM-as-a-judge evaluators score outputs for properties such as relevance, toxicity or refusal.

Drift detection methods and default thresholds

Drift detection in Evidently is automatic by default but fully configurable. The library picks a statistical test per column from its type and the number of observations, then marks the column as drifted when the score crosses a threshold. The defaults below reflect the documented behavior of recent releases and can be overridden for any column.

Column typeUp to 1,000 rowsMore than 1,000 rows
NumericalTwo-sample Kolmogorov-Smirnov test, p-value below 0.05Normed Wasserstein distance, threshold 0.1
CategoricalChi-squared test, p-value below 0.05Jensen-Shannon divergence, threshold 0.1
Binary categoricalProportion difference Z-testJensen-Shannon divergence, threshold 0.1
TextDomain classifier on embeddings or vocabularyDomain classifier, ROC AUC threshold
Default drift methods by column type and sample size

The size-based switch matters. On large samples, hypothesis tests flag trivial shifts as statistically significant, so Evidently moves to distance metrics whose magnitude reflects practical change. Users can instead select the population stability index, Kullback-Leibler divergence, Anderson-Darling or Cramér-von Mises tests.

At dataset level, Evidently declares dataset drift when a share of columns drifts, by default half of the features. This rule is a starting point, not a universal truth: one drifted high-importance feature can harm a model more than ten drifted minor ones, so experienced teams weight or restrict the checked columns.

Evidently occupies the evaluation and monitoring layer of an ML platform rather than training, serving or versioning. It complements tools such as DVC, Kubeflow, KServe or Amazon SageMaker instead of replacing them, and it overlaps most with general ML observability products.

Tool categoryMain jobRelation to Evidently
Experiment trackingLogs runs, parameters and artifactsCan store Evidently reports as artifacts
Data validation librariesAssert schema and value expectationsOverlapping checks; Evidently adds drift statistics
Model serving frameworksExpose models as endpointsProduce the logs Evidently analyzes
Commercial ML observabilityManaged monitoring and root-cause analysisSimilar goal; Evidently is open-source first
Cloud-native monitorsBuilt-in drift jobs on a vendor platformEvidently is vendor-neutral and portable
Where Evidently fits among neighboring tool categories

The main practical difference is portability. Because Evidently is a plain Python package, the same checks run in a notebook, an Airflow or Prefect task, a GitHub Actions job or a batch inference pipeline, with no dependency on one cloud provider.

Using Evidently in production pipelines

Evidently supports three common deployment patterns, and mature teams often combine them. The right pattern depends on whether predictions are made in batches or online, and on how quickly ground truth becomes available.

PatternHow it runsBest suited for
Ad hoc reportsNotebook or script during developmentModel debugging and validation reviews
Test-based quality gatesConditions in CI/CD or before promotionBlocking bad data or weak model versions
Batch monitoringScheduled jobs write snapshots to a workspaceDashboards and alerts over time
Online tracingInstrumented LLM calls logged for evaluationChatbots, RAG systems and agents
Deployment patterns and when each applies

A sound setup begins with a carefully chosen reference window, usually a validation period that represents normal traffic. Delayed ground truth is handled by monitoring input and prediction drift as leading indicators first, then computing accuracy or error metrics when labels arrive days or weeks later.

  • Version the reference dataset together with the model artifact, so drift is always measured against the data the model actually learned from.
  • Alert on sustained drift across several windows rather than one noisy batch.
  • Route alerts to a retraining or review decision, not to automatic retraining by default.

Limitations and common mistakes

Evidently measures statistical change, not business harm. A drift alert says that a distribution moved; it does not prove that predictions became wrong, and the absence of drift does not guarantee good performance, because concept drift can change the relationship between inputs and labels while inputs look stable.

  • Unsuitable reference data, such as a heavily sampled training set, produces constant false alarms.
  • Small current windows make tests unstable; aggregate enough rows before judging drift.
  • Default thresholds rarely fit every feature; tune them on historical data.
  • LLM-as-a-judge scores inherit the biases of the judge model and need periodic human review.
  • Heavy reports on wide tables can be slow; restrict columns or sample for routine runs.

Explained without jargon

A machine learning model learns from past data. Later, the world changes. Customers behave differently, sensors age and new products appear. The model may quietly get worse. Evidently is a health check for models.

It compares today’s data with the data the model knew. It then shows what changed and how much. Think of a doctor comparing a new blood test with last year’s results. A change is a reason to look closer. It is not automatically a diagnosis. People still decide whether to retrain, fix the data or leave the model alone.

A typical use case

A regional lender scores about 40,000 loan applications per week with a gradient-boosted model. Repayment outcomes arrive only after several months, so the team cannot measure accuracy quickly. They schedule a weekly Evidently job that compares each week of applications with a reference quarter from the validation period and stores the results in a monitoring dashboard.

In one week, the job flags the income and employment-length features with Wasserstein distances well above 0.1, while the overall share of drifted columns stays below the dataset threshold. Investigation shows that a partner website changed its form and began sending income as a monthly instead of an annual figure. The team fixes the data pipeline within two days, before thousands of applications are scored on corrupted inputs, and adds a test-based quality gate that blocks future batches with the same pattern.