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 portable;
8pub mod puffin;
9pub mod residual;
10pub mod sketches;
11pub mod stats;
12
13pub use error::{Error, Result};
14pub use portable::{DecodedColumnStats, PortableSketchBlob, PortableStatsSnapshot};
15pub use stats::ColumnStats;
16
17/// Top-level re-export for the LLM-pluggable corrector backend
18/// (`samkhya-core::residual::llm::LlmHttpCorrector`). Available only when
19/// the `llm_http` cargo feature is enabled. Mirrors the wire contract of
20/// the TabPFN HTTP backend — see `residual` module docs for the safety
21/// contract and `bench-results/19_llm_corrector.md` for routing
22/// guidance.
23#[cfg(feature = "llm_http")]
24pub use residual::llm::{LlmHttpCorrector, LlmHttpOptions};