pub fn create_provider(
config: &EmbeddingConfig,
) -> Result<Box<dyn EmbeddingProvider>, EmbeddingError>Expand description
Create the built-in embedding provider from configuration.
Requires the builtin-embeddings feature (enabled by default).
ยงErrors
Returns EmbeddingError::ConfigError if batch_size is 0 or if the
built-in provider fails to initialise.