Class GoogleGenAiTextEmbeddingAutoConfiguration
java.lang.Object
org.springframework.ai.model.google.genai.autoconfigure.embedding.GoogleGenAiTextEmbeddingAutoConfiguration
@AutoConfiguration(after={org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.class,GoogleGenAiEmbeddingConnectionAutoConfiguration.class})
@ConditionalOnClass(org.springframework.ai.google.genai.text.GoogleGenAiTextEmbeddingModel.class)
@ConditionalOnProperty(name="spring.ai.model.embedding.text",
havingValue="google-genai",
matchIfMissing=true)
@EnableConfigurationProperties(GoogleGenAiTextEmbeddingProperties.class)
public class GoogleGenAiTextEmbeddingAutoConfiguration
extends Object
Auto-configuration for Google GenAI Text Embedding.
- Since:
- 1.1.0
- Author:
- Christian Tzolov, Mark Pollack, Ilayaperumal Gopinathan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.google.genai.text.GoogleGenAiTextEmbeddingModelgoogleGenAiTextEmbedding(org.springframework.ai.google.genai.GoogleGenAiEmbeddingConnectionDetails connectionDetails, GoogleGenAiTextEmbeddingProperties textEmbeddingProperties, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.embedding.observation.EmbeddingModelObservationConvention> observationConvention)
-
Constructor Details
-
GoogleGenAiTextEmbeddingAutoConfiguration
public GoogleGenAiTextEmbeddingAutoConfiguration()
-
-
Method Details
-
googleGenAiTextEmbedding
@Bean @ConditionalOnMissingBean public org.springframework.ai.google.genai.text.GoogleGenAiTextEmbeddingModel googleGenAiTextEmbedding(org.springframework.ai.google.genai.GoogleGenAiEmbeddingConnectionDetails connectionDetails, GoogleGenAiTextEmbeddingProperties textEmbeddingProperties, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.embedding.observation.EmbeddingModelObservationConvention> observationConvention)
-