> For the complete documentation index, see [llms.txt](https://docs.feast.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.feast.dev/master/project/adr/adr-0011-data-quality-monitoring.md).

# ADR-0011: Data Quality Monitoring

## Status

Superseded — The original external-library-based validation has been replaced by Feast's native [Feature Quality Monitoring](/master/how-to-guides/feature-monitoring.md) system (`feast monitor run`).

## Context

Data quality issues can significantly impact ML model performance. Several complex data problems needed to be addressed:

* **Data consistency**: New training datasets can differ significantly from previous datasets, potentially requiring changes in model architecture.
* **Upstream pipeline bugs**: Bugs in upstream pipelines can cause invalid values to overwrite existing valid values in an online store.
* **Training/serving skew**: Distribution shift between training and serving data can decrease model performance.

Feast needed a mechanism to validate data to catch these issues before they affect model training or serving.

## Decision

Introduce a Data Quality Monitoring (DQM) module that validates datasets against user-curated rules.

### Original Design (now replaced)

The original validation process used a **reference dataset** and a **profiler** pattern:

1. User prepares a reference dataset (saved from a known-good historical retrieval).
2. User defines a profiler function that produces a profile (set of expectations) from a dataset.
3. Validation is performed by comparing the tested dataset against the reference profile.

This approach was limited to historical retrieval only, required additional dependencies, and offered no built-in UI or automation.

### Current Design

The current system (`feast monitor run`) provides:

* Automatic metric computation (null rates, percentiles, histograms) with no external dependencies
* Monitoring across batch data and serving logs
* CLI and REST API for automation
* Built-in UI monitoring dashboard
* Support for all offline store backends via SQL push-down

See [Feature Quality Monitoring](/master/how-to-guides/feature-monitoring.md) for full documentation.

## Consequences

### Positive

* Users can detect data quality issues before they affect model training.
* Native integration requires no extra dependencies.
* Covers both batch data and serving logs.
* Built-in UI provides immediate visibility into feature health.
* Baselines computed automatically on `feast apply`.

### Negative

* Migration required from the original profiler-based approach.

## References

* Original RFC: Feast RFC-027: Data Quality Monitoring
* Implementation: `sdk/python/feast/monitoring/`
* Documentation: [Data Quality Monitoring](/master/reference/dqm.md)
* [Feature Quality Monitoring guide](/master/how-to-guides/feature-monitoring.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.feast.dev/master/project/adr/adr-0011-data-quality-monitoring.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
