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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPgVectorEmbeddingStoreConfig(DataSource dataSource, @Nullable dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig metadataStorageConfig) -
Method Summary
Modifier and TypeMethodDescriptionWhether to create the table.Whether to drop the table first.The index list size.dev.langchain4j.store.embedding.pgvector.MetadataStorageConfigThe metadata storage config.getTable()Whether to use the index.voidsetCreateTable(Boolean createTable) Sets whether to create the table.voidsetDimension(Integer dimension) Sets the dimension.voidsetDropTableFirst(Boolean dropTableFirst) Sets whether the table should be dropped.voidsetIndexListSize(Integer indexListSize) Sets the index list size.voidThe table to use.voidsetUseIndex(Boolean useIndex) Sets whether to use the index.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
PgVectorEmbeddingStoreConfig
public PgVectorEmbeddingStoreConfig(@Parameter DataSource dataSource, @Parameter @Nullable @Nullable dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig metadataStorageConfig)
-
-
Method Details
-
getDataSource
- Returns:
- The data source.
-
getTable
- Returns:
- The table.
-
setTable
The table to use.- Parameters:
table- The table.
-
getDimension
- Returns:
- The dimension to use.
-
setDimension
Sets the dimension.- Parameters:
dimension- The dimension
-
getUseIndex
Whether to use the index.- Returns:
- True if the index should be used
-
setUseIndex
Sets whether to use the index.- Parameters:
useIndex- True if the index should be used
-
getIndexListSize
The index list size.- Returns:
- The index list size.
-
setIndexListSize
Sets the index list size.- Parameters:
indexListSize- The index list size.
-
getCreateTable
Whether to create the table.- Returns:
- Whether to create the table
-
setCreateTable
Sets whether to create the table.- Parameters:
createTable- The table
-
getDropTableFirst
Whether to drop the table first.- Returns:
- True if the table should be dropped.
-
setDropTableFirst
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
-