ragdrift-core 0.1.4

Pure-Rust core for ragdrift: 5-dimensional drift detection for RAG systems.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Statistical primitives used by the detectors.
//!
//! Each module exposes a small, pure function that takes raw arrays and
//! returns a scalar score. Detectors compose these into a [`DriftScore`]
//! with a threshold attached.
//!
//! [`DriftScore`]: crate::types::DriftScore

pub mod ks;
pub mod mmd;
pub mod psi;
pub mod wasserstein;

pub use ks::ks_two_sample;
pub use mmd::{mmd_rbf, MmdEstimator};
pub use psi::{psi, PsiBinning};
pub use wasserstein::{sliced_wasserstein, wasserstein_1d};