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 TypeMethodDescriptioncohereApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties) cohereEmbeddingClient
(CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-
Constructor Details
-
BedrockCohereEmbeddingAutoConfiguration
public BedrockCohereEmbeddingAutoConfiguration()
-
-
Method Details
-
cohereApi
@Bean @ConditionalOnMissingBean public CohereEmbeddingBedrockApi cohereApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockCohereEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties) -
cohereEmbeddingClient
@Bean @ConditionalOnMissingBean public BedrockCohereEmbeddingClient cohereEmbeddingClient(CohereEmbeddingBedrockApi cohereEmbeddingApi, BedrockCohereEmbeddingProperties properties)
-