reflex/scoring/mod.rs
1//! L3 verification via cross-encoder reranking.
2//!
3//! Given a query and candidate `CacheEntry`s, score them with [`Reranker`](crate::embedding::Reranker)
4//! and decide whether the best candidate is above the configured threshold.
5//!
6//! Note: [`CrossEncoderScorer`] treats `CacheEntry::payload_blob` as UTF-8 candidate text.
7
8/// Scoring/verification errors.
9pub mod error;
10/// Cross-encoder scorer.
11pub mod scorer;
12/// Scoring result types.
13pub mod types;
14
15#[cfg(test)]
16mod tests;
17
18pub use error::ScoringError;
19pub use scorer::CrossEncoderScorer;
20pub use types::{VerificationResult, VerifiedCandidate};