Skip to main content

Crate blazen_embed

Crate blazen_embed 

Source
Expand description

Facade over the concrete embedding backend for the current target.

  • On non-musl, non-Intel-macOS targets, re-exports blazen-embed-fastembed (fast C++ ONNX Runtime).
  • On musl Linux and Intel macOS (x86_64-apple-darwin), re-exports blazen-embed-tract (pure-Rust ONNX inference via tract). ORT has no prebuilt binaries for either platform.

Downstream code imports ONLY from this crate. The backend selection is invisible.

Structs§

EmbedModel
A local embedding model backed by fastembed (ONNX Runtime).
EmbedOptions
Options for constructing a FastEmbedModel.
EmbedResponse
Response from a fastembed embedding operation.

Enums§

EmbedError
Error type for fastembed operations.