configEmbeddingFromMap method
configure Embedding service from map
Implementation
void configEmbeddingFromMap(Map<String, dynamic> newConfig) {
if (newConfig.isEmpty) {
throw InvalidParamsException(
message: 'newConfig should have data inside');
}
_configEmbedding =
ConfigEmbedding(model: newConfig['model'] ?? _configEmbedding.model);
}