llmjury/lib.rs
1//! # rusty-llm-jury
2//!
3//! A Rust library for estimating success rates when using LLM judges for evaluation.
4//!
5//! This library provides tools to estimate the true success rate of your system by
6//! correcting for LLM judge bias using bootstrap confidence intervals.
7
8pub mod bias_correction;
9pub mod cli;
10pub mod error;
11pub mod synthetic;
12pub mod utils;
13
14pub use bias_correction::*;
15pub use error::*;
16pub use synthetic::*;
17
18/// Version of the library
19pub const VERSION: &str = env!("CARGO_PKG_VERSION");
20
21/// Default number of bootstrap iterations
22pub const DEFAULT_BOOTSTRAP_ITERATIONS: usize = 20_000;
23
24/// Default confidence level (95%)
25pub const DEFAULT_CONFIDENCE_LEVEL: f64 = 0.95;
26
27#[cfg(test)]
28mod tests {
29 use super::*;
30
31 #[test]
32 fn test_version_is_set() {
33 assert!(!VERSION.is_empty());
34 }
35}