Skip to main content

samkhya_core/
lib.rs

1//! samkhya-core — portable cardinality correction primitives.
2#![deny(rustdoc::broken_intra_doc_links)]
3
4pub mod error;
5pub mod feedback;
6pub mod lpbound;
7pub mod puffin;
8pub mod residual;
9pub mod sketches;
10pub mod stats;
11
12pub use error::{Error, Result};
13pub use stats::ColumnStats;
14
15/// Top-level re-export for the LLM-pluggable corrector backend
16/// (`samkhya-core::residual::llm::LlmHttpCorrector`). Available only when
17/// the `llm_http` cargo feature is enabled. Mirrors the wire contract of
18/// the TabPFN HTTP backend — see `residual` module docs for the safety
19/// contract and `bench-results/19_llm_corrector.md` for routing
20/// guidance.
21#[cfg(feature = "llm_http")]
22pub use residual::llm::{LlmHttpCorrector, LlmHttpOptions};