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