Class PgVectorEmbeddingStoreConfig

java.lang.Object
io.micronaut.langchain4j.pgvector.PgVectorEmbeddingStoreConfig

@EachProperty(value="langchain4j.pgvector.embedding-stores", primary="default") public class PgVectorEmbeddingStoreConfig extends Object
Configures for PgVectorEmbeddingStore.
  • Field Details

  • Constructor Details

    • PgVectorEmbeddingStoreConfig

      public PgVectorEmbeddingStoreConfig(@Parameter DataSource dataSource, @Parameter @Nullable @Nullable dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig metadataStorageConfig)
  • Method Details

    • getDataSource

      public DataSource getDataSource()
      Returns:
      The data source.
    • getTable

      public String getTable()
      Returns:
      The table.
    • setTable

      public void setTable(String table)
      The table to use.
      Parameters:
      table - The table.
    • getDimension

      public Integer getDimension()
      Returns:
      The dimension to use.
    • setDimension

      public void setDimension(Integer dimension)
      Sets the dimension.
      Parameters:
      dimension - The dimension
    • getUseIndex

      public Boolean getUseIndex()
      Whether to use the index.
      Returns:
      True if the index should be used
    • setUseIndex

      public void setUseIndex(Boolean useIndex)
      Sets whether to use the index.
      Parameters:
      useIndex - True if the index should be used
    • getIndexListSize

      public Integer getIndexListSize()
      The index list size.
      Returns:
      The index list size.
    • setIndexListSize

      public void setIndexListSize(Integer indexListSize)
      Sets the index list size.
      Parameters:
      indexListSize - The index list size.
    • getCreateTable

      public Boolean getCreateTable()
      Whether to create the table.
      Returns:
      Whether to create the table
    • setCreateTable

      public void setCreateTable(Boolean createTable)
      Sets whether to create the table.
      Parameters:
      createTable - The table
    • getDropTableFirst

      public Boolean getDropTableFirst()
      Whether to drop the table first.
      Returns:
      True if the table should be dropped.
    • setDropTableFirst

      public void setDropTableFirst(Boolean dropTableFirst)
      Sets whether the table should be dropped.
      Parameters:
      dropTableFirst - True if the table should be dropped.
    • getMetadataStorageConfig

      public dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig getMetadataStorageConfig()
      The metadata storage config.
      Returns:
      The config