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 Client.- Since:
- 0.8.0
- Author:
- Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncohereEmbeddingApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties) cohereEmbeddingClient
(CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-
Constructor Details
-
BedrockCohereEmbeddingAutoConfiguration
public BedrockCohereEmbeddingAutoConfiguration()
-
-
Method Details
-
cohereEmbeddingApi
@Bean @ConditionalOnMissingBean public CohereEmbeddingBedrockApi cohereEmbeddingApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties) -
cohereEmbeddingClient
@Bean @ConditionalOnMissingBean public BedrockCohereEmbeddingClient cohereEmbeddingClient(CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-