pub enum EmbedderChoice {
Default,
Caller(Arc<dyn Embedder>),
None,
}Expand description
Caller-facing selector for the embedder used by an opened engine
(dev/design/embedder.md §0).
Variants§
Default
Use the engine’s default embedder. With the default-embedder
Cargo feature enabled, this materializes a CandleBgeEmbedder
via the EU-3 loader at Engine::open; on first use the loader
downloads pinned bge-small-en-v1.5 weights from HuggingFace per
ADR-0.7.1-default-embedder-weight-fetch. Without the feature,
this returns EmbedderError::Failed directing the caller to
rebuild with --features default-embedder or supply
EmbedderChoice::Caller.
Caller(Arc<dyn Embedder>)
Caller supplies the embedder instance. The supplied embedder’s
identity() becomes the workspace’s default-profile identity.
None
No embedder configured. Engine opens; subsequent vector writes
fail with EngineError::EmbedderNotConfigured. Useful for
read-only or canonical-only flows.
Trait Implementations§
Source§impl Clone for EmbedderChoice
impl Clone for EmbedderChoice
Source§fn clone(&self) -> EmbedderChoice
fn clone(&self) -> EmbedderChoice
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more