Class BedrockCohereEmbeddingAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.cohere.BedrockCohereEmbeddingAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(CohereEmbeddingBedrockApi.class)
@EnableConfigurationProperties({BedrockCohereEmbeddingProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.cohere.embedding",
name="enabled",
havingValue="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
-
Method Summary
Modifier and TypeMethodDescriptioncohereEmbeddingApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties) cohereEmbeddingModel
(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 CohereEmbeddingBedrockApi cohereEmbeddingApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties) -
cohereEmbeddingModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(CohereEmbeddingBedrockApi.class) public BedrockCohereEmbeddingModel cohereEmbeddingModel(CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-