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 TypeMethodDescription@Nullable BooleanWhether to create the table.@Nullable Integer@Nullable BooleanWhether to drop the table first.@Nullable IntegerThe index list size.@Nullable dev.langchain4j.store.embedding.pgvector.MetadataStorageConfigThe metadata storage config.@Nullable StringgetTable()@Nullable BooleanWhether to use the index.voidsetCreateTable(@Nullable Boolean createTable) Sets whether to create the table.voidsetDimension(@Nullable Integer dimension) Sets the dimension.voidsetDropTableFirst(@Nullable Boolean dropTableFirst) Sets whether the table should be dropped.voidsetIndexListSize(@Nullable Integer indexListSize) Sets the index list size.voidThe table to use.voidsetUseIndex(@Nullable Boolean useIndex) Sets whether to use the index.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
PgVectorEmbeddingStoreConfig
public PgVectorEmbeddingStoreConfig(@Parameter DataSource dataSource, @Parameter @Nullable dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig metadataStorageConfig)
-
-
Method Details
-
getDataSource
- Returns:
- The data source.
-
getTable
- Returns:
- The table.
-
setTable
-
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
-
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 @Nullable dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig getMetadataStorageConfig()The metadata storage config.- Returns:
- The config
-