Class BedrockCohereEmbeddingAutoConfiguration
java.lang.Object
org.springframework.ai.model.bedrock.cohere.autoconfigure.BedrockCohereEmbeddingAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.class)
@EnableConfigurationProperties({BedrockCohereEmbeddingProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(name="spring.ai.model.embedding",
havingValue="bedrock-cohere",
matchIfMissing=true)
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockCohereEmbeddingAutoConfiguration
extends Object
Auto-configuration for Bedrock Cohere Embedding Model.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Wei Jiang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApicohereEmbeddingApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModelcohereEmbeddingModel(org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-
Constructor Details
-
BedrockCohereEmbeddingAutoConfiguration
public BedrockCohereEmbeddingAutoConfiguration()
-
-
Method Details
-
cohereEmbeddingApi
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi cohereEmbeddingApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
cohereEmbeddingModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.class) public org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModel cohereEmbeddingModel(org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-