Skip to main content

Module migrations

Module migrations 

Source
Expand description

SQL migration strings for manual schema setup.

When PgVectorStoreBuilder::auto_migrate(false) is set, run these SQL statements against your database before using the store.

Constants§

CREATE_EXTENSION
Creates the vector extension if it does not exist.

Functions§

create_hnsw_index_sql
Returns the CREATE INDEX statement for an HNSW index.
create_table_sql
Returns the CREATE TABLE statement for a given table name and dimension count.