pub fn shared_engine() -> Option<&'static EmbeddingEngine>Expand description
Global singleton embedding engine. Loaded once, shared across all consumers.
Returns None if the embeddings feature is disabled or the model fails to load.
NOTE: This function BLOCKS on first call while loading the ONNX model (~25MB).
For non-blocking access, use try_shared_engine() instead.