Expand description
Embedding-backend construction. Memory is the first server-side consumer of
kyma-embed; the backend (an ONNX model for fastembed) is built once and
shared process-wide via a OnceCell so the model loads at most once.
Functionsยง
- build_
embedding_ backend - Construct an embedding backend from config. Only providers whose
kyma-embedfeature is enabled are available; others return an error. - shared_
embedding - The process-wide embedding backend, lazily built from
EmbeddingConfig::from_envon first use.