popsam-core 0.1.1

Core library for AI-assisted selection of semantically representative texts
Documentation
//! Core library for selecting semantically representative texts from a larger collection.
//!
//! The public API is organized around three concerns:
//! - input and result data models in [`model`]
//! - embedding providers in [`embedding`]
//! - the elimination algorithm in [`election`]

#![deny(missing_docs)]

/// Election configuration and execution.
pub mod election;
/// Embedding provider traits and implementations.
pub mod embedding;
/// Error types returned by the library.
pub mod error;
/// Serializable data models used by the public API.
pub mod model;

pub use election::{run_election, ElectionConfig};
pub use embedding::{
    CandleEmbeddingModelFiles, CandleEmbeddingModelSpec, CandleEmbeddingProvider,
    EmbeddingProvider, OpenAiCompatibleEmbeddingProvider,
};
pub use error::{PopsamError, PopsamResult};
pub use model::{
    CandidateBestResult, CandidateRoundVotes, ElectionResult, EmbeddedText, EmbeddedTextInput,
    InputRecord, RoundSummary,
};