Class PgVectorStoreAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.vectorstore.pgvector.PgVectorStoreAutoConfiguration

@AutoConfiguration(after=org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration.class) @ConditionalOnClass({org.springframework.ai.vectorstore.pgvector.PgVectorStore.class,javax.sql.DataSource.class,org.springframework.jdbc.core.JdbcTemplate.class}) @EnableConfigurationProperties(PgVectorStoreProperties.class) public class PgVectorStoreAutoConfiguration extends Object
Auto-configuration for PostgreSQL Vector Store.
Since:
1.0.0
Author:
Christian Tzolov, Josh Long, Soby Chacko
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    vectorStore(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.ai.embedding.EmbeddingModel embeddingModel, PgVectorStoreProperties properties, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.vectorstore.observation.VectorStoreObservationConvention> customObservationConvention, org.springframework.ai.embedding.BatchingStrategy batchingStrategy)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PgVectorStoreAutoConfiguration

      public PgVectorStoreAutoConfiguration()
  • Method Details

    • vectorStore

      @Bean @ConditionalOnMissingBean public PgVectorStore vectorStore(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.ai.embedding.EmbeddingModel embeddingModel, PgVectorStoreProperties properties, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.vectorstore.observation.VectorStoreObservationConvention> customObservationConvention, org.springframework.ai.embedding.BatchingStrategy batchingStrategy)