Class VertexAiEmbeddingAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.vertexai.embedding.VertexAiEmbeddingAutoConfiguration
@AutoConfiguration(after=SpringAiRetryAutoConfiguration.class)
@ConditionalOnClass({com.google.cloud.vertexai.VertexAI.class,VertexAiTextEmbeddingModel.class})
@EnableConfigurationProperties({VertexAiEmbeddingConnectionProperties.class,VertexAiTextEmbeddingProperties.class,VertexAiMultimodalEmbeddingProperties.class})
@ImportAutoConfiguration(classes=SpringAiRetryAutoConfiguration.class)
public class VertexAiEmbeddingAutoConfiguration
extends Object
Auto-configuration for Vertex AI Gemini Chat.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Mark Pollack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconnectionDetails
(VertexAiEmbeddingConnectionProperties connectionProperties) multimodalEmbedding
(VertexAiEmbeddingConnectionDetails connectionDetails, VertexAiMultimodalEmbeddingProperties multimodalEmbeddingProperties) textEmbedding
(VertexAiEmbeddingConnectionDetails connectionDetails, VertexAiTextEmbeddingProperties textEmbeddingProperties, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<EmbeddingModelObservationConvention> observationConvention)
-
Constructor Details
-
VertexAiEmbeddingAutoConfiguration
public VertexAiEmbeddingAutoConfiguration()
-
-
Method Details
-
connectionDetails
@Bean @ConditionalOnMissingBean public VertexAiEmbeddingConnectionDetails connectionDetails(VertexAiEmbeddingConnectionProperties connectionProperties) -
textEmbedding
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.embedding.text", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiTextEmbeddingModel textEmbedding(VertexAiEmbeddingConnectionDetails connectionDetails, VertexAiTextEmbeddingProperties textEmbeddingProperties, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<EmbeddingModelObservationConvention> observationConvention) -
multimodalEmbedding
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.embedding.multimodal", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiMultimodalEmbeddingModel multimodalEmbedding(VertexAiEmbeddingConnectionDetails connectionDetails, VertexAiMultimodalEmbeddingProperties multimodalEmbeddingProperties) throws IOException - Throws:
IOException
-