Class BedrockTitanEmbeddingAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.titan.BedrockTitanEmbeddingAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(TitanEmbeddingBedrockApi.class)
@EnableConfigurationProperties({BedrockTitanEmbeddingProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.titan.embedding",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockTitanEmbeddingAutoConfiguration
extends Object
Auto-configuration
for Bedrock Titan Embedding Model.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Wei Jiang
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontitanEmbeddingBedrockApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockTitanEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) titanEmbeddingModel
(TitanEmbeddingBedrockApi titanEmbeddingApi, BedrockTitanEmbeddingProperties properties)
-
Constructor Details
-
BedrockTitanEmbeddingAutoConfiguration
public BedrockTitanEmbeddingAutoConfiguration()
-
-
Method Details
-
titanEmbeddingBedrockApi
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public TitanEmbeddingBedrockApi titanEmbeddingBedrockApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockTitanEmbeddingProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
titanEmbeddingModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(TitanEmbeddingBedrockApi.class) public BedrockTitanEmbeddingModel titanEmbeddingModel(TitanEmbeddingBedrockApi titanEmbeddingApi, BedrockTitanEmbeddingProperties properties)
-