Class CohereEmbeddingModelFactory
java.lang.Object
io.helidon.integrations.langchain4j.providers.cohere.CohereEmbeddingModelFactory
- All Implemented Interfaces:
Service.ServicesFactory<dev.langchain4j.model.cohere.CohereEmbeddingModel>
@Singleton
@Named("*")
public class CohereEmbeddingModelFactory
extends Object
implements Service.ServicesFactory<dev.langchain4j.model.cohere.CohereEmbeddingModel>
Factory for a configured
CohereEmbeddingModel
.- See Also:
-
Field Summary
Fields inherited from interface io.helidon.service.registry.Service.ServicesFactory
TYPE
-
Method Summary
Modifier and TypeMethodDescriptionstatic dev.langchain4j.model.cohere.CohereEmbeddingModel
create
(CohereEmbeddingModelConfig config) Create the Cohere model from its configuration.List
<Service.QualifiedInstance<dev.langchain4j.model.cohere.CohereEmbeddingModel>> services()
List of service instances.
-
Method Details
-
create
public static dev.langchain4j.model.cohere.CohereEmbeddingModel create(CohereEmbeddingModelConfig config) Create the Cohere model from its configuration.- Parameters:
config
- configuration to use- Returns:
- a new model instance
- Throws:
IllegalStateException
- in case the configuration is not enabled
-
services
public List<Service.QualifiedInstance<dev.langchain4j.model.cohere.CohereEmbeddingModel>> services()Description copied from interface:Service.ServicesFactory
List of service instances. Each instance may have a different set of qualifiers.The following is inherited from this factory:
- Set of contracts, except for
Service.ServicesFactory
- Scope
- Run level
- Weight
- Specified by:
services
in interfaceService.ServicesFactory<dev.langchain4j.model.cohere.CohereEmbeddingModel>
- Returns:
- qualified suppliers of service instances
- Set of contracts, except for
-