Skip to main content

Crate popsam_core

Crate popsam_core 

Source
Expand description

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

Re-exports§

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

Modules§

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