Class PgVectorStore.PgVectorStoreBuilder
java.lang.Object
org.springframework.ai.vectorstore.AbstractVectorStoreBuilder<PgVectorStore.PgVectorStoreBuilder>
org.springframework.ai.vectorstore.pgvector.PgVectorStore.PgVectorStoreBuilder
- All Implemented Interfaces:
VectorStore.Builder<PgVectorStore.PgVectorStoreBuilder>
- Enclosing class:
- PgVectorStore
public static final class PgVectorStore.PgVectorStoreBuilder
extends AbstractVectorStoreBuilder<PgVectorStore.PgVectorStoreBuilder>
-
Field Summary
Fields inherited from class org.springframework.ai.vectorstore.AbstractVectorStoreBuilder
batchingStrategy, customObservationConvention, embeddingModel, observationRegistry
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a new VectorStore instance with the configured settings.dimensions
(int dimensions) distanceType
(PgVectorStore.PgDistanceType distanceType) idType
(PgVectorStore.PgIdType idType) indexType
(PgVectorStore.PgIndexType indexType) initializeSchema
(boolean initializeSchema) maxDocumentBatchSize
(int maxDocumentBatchSize) removeExistingVectorStoreTable
(boolean removeExistingVectorStoreTable) schemaName
(String schemaName) vectorTableName
(String vectorTableName) vectorTableValidationsEnabled
(boolean vectorTableValidationsEnabled) Methods inherited from class org.springframework.ai.vectorstore.AbstractVectorStoreBuilder
batchingStrategy, customObservationConvention, getBatchingStrategy, getCustomObservationConvention, getEmbeddingModel, getObservationRegistry, observationRegistry, self
-
Method Details
-
schemaName
-
vectorTableName
-
idType
-
vectorTableValidationsEnabled
public PgVectorStore.PgVectorStoreBuilder vectorTableValidationsEnabled(boolean vectorTableValidationsEnabled) -
dimensions
-
distanceType
-
removeExistingVectorStoreTable
public PgVectorStore.PgVectorStoreBuilder removeExistingVectorStoreTable(boolean removeExistingVectorStoreTable) -
indexType
-
initializeSchema
-
maxDocumentBatchSize
-
build
Description copied from interface:VectorStore.Builder
Builds and returns a new VectorStore instance with the configured settings.- Returns:
- a new VectorStore instance
-