Class GoogleGenAiTextEmbeddingAutoConfiguration
java.lang.Object
org.springframework.ai.model.google.genai.autoconfigure.embedding.GoogleGenAiTextEmbeddingAutoConfiguration
@AutoConfiguration
@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, Yanming Zhou, Sebastien Deleuze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.google.genai.text.GoogleGenAiTextEmbeddingModelgoogleGenAiTextEmbedding(org.springframework.ai.google.genai.embedding.GoogleGenAiEmbeddingConnectionDetails connectionDetails, GoogleGenAiTextEmbeddingProperties textEmbeddingProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.core.retry.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.embedding.GoogleGenAiEmbeddingConnectionDetails connectionDetails, GoogleGenAiTextEmbeddingProperties textEmbeddingProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.core.retry.RetryTemplate> retryTemplate, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.embedding.observation.EmbeddingModelObservationConvention> observationConvention)
-