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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)