initialize(
engine: PostgresEngine,
embeddings: EmbeddingsInterface,
tableName: string,
schemaName: PostgresVectorStoreArgs | Name | Type | Description |
|---|---|---|
engine* | PostgresEngine | Required - Connection pool engine for managing connections to Cloud SQL for PostgreSQL database. |
embeddings* | EmbeddingsInterface | Required - Text embedding model to use. |
tableName* | string | Required - Name of an existing table or table to be created. |
schemaName | PostgresVectorStoreArgs | Default: {} |
Create a new PostgresVectorStore instance.
Database schema name of the table. Defaults to "public".