Expand description
Model registry — manifest-driven downloads with SHA-256 verification, adapter selection by config string, and self-describing model metadata.
Re-exports§
pub use adapter::AdapterError;pub use adapter::AdapterFactory;pub use adapter::AdapterRegistry;pub use adapter::AdapterStage;pub use adapter::BuiltinAdapter;pub use download::DownloadError;pub use download::download_with_checksum;pub use download::download_with_checksum_and_signature;pub use download::verify_sha256;pub use manifest::Manifest;pub use manifest::ManifestError;pub use manifest::ModelEntry;pub use manifest::ProfileEntry;pub use manifest::SCHEMA_V1;pub use manifest::SCHEMA_V2;pub use manifest::is_supported_schema;pub use metadata::MetaSource;pub use metadata::ModelConfigMeta;pub use metadata::load_model_config;pub use metadata::read_onnx_metadata_props;
Modules§
- adapter
- Adapter registry — select segmentation / embedder / clusterer / scoring / VAD implementations by config string, with a public registration API.
- download
- HTTP download with streamed SHA-256 and optional Minisign verification.
- manifest
- TOML manifest describing where each ONNX model lives, its checksum, and
which model each
Profileresolves to. - metadata
- Self-describing model configuration.
- verify
- Minisign signature verification for model artifacts.
Structs§
- Model
Registry - A model registry: holds a manifest + a cache directory, and downloads/verifies models on demand.
- Profile
Models - Resolved file paths for the segmenter and embedder of a profile.
- VbxPlda
Artifact - One VBx PLDA artifact: manifest id, on-disk filename, sha256, byte size.
- VbxPlda
Artifacts - Backwards-compatible iterable over
vbx_plda_artifacts: keepsfor art in VBX_PLDA_ARTIFACTScall sites working now that the table is manifest-derived instead of a const slice.
Enums§
- Registry
Error - Errors from
ModelRegistryoperations.
Constants§
- DEFAULT_
MANIFEST_ TOML - The default manifest shipped with the crate. Embedded at compile time.
- VBX_
PLDA_ ARTIFACTS - The six precomputed VBx PLDA
.npyfiles, inPldaModel::from_dirorder. - VBX_
PLDA_ MODEL_ IDS - Manifest model ids of the six precomputed VBx PLDA
.npyfiles, inPldaModel::from_dirorder. This is the only hardcoded part of the artifact table; filenames, hashes and sizes come from the embedded manifest viavbx_plda_artifacts.
Functions§
- default_
manifest - { true }
pub fn default_manifest() -> Manifest
{ true }
Parse the bundled default manifest. Panics in debug if the embedded TOML is
malformed — that’s a static asset bug caught by
cargo test. - vbx_
plda_ artifacts - The six precomputed VBx PLDA artifacts, in
VBX_PLDA_MODEL_IDSorder.