Interface that defines the arguments required to create a PGVectorStore instance. It includes Postgres connection options, table name, filter, and verbosity level.

interface PGVectorStoreArgs {
    tableName: string;
    chunkSize?: number;
    collectionMetadata?: null | Metadata;
    collectionName?: string;
    collectionTableName?: string;
    columns?: {
        contentColumnName?: string;
        idColumnName?: string;
        metadataColumnName?: string;
        vectorColumnName?: string;
    };
    distanceStrategy?: "cosine" | "innerProduct" | "euclidean";
    extensionSchemaName?: null | string;
    filter?: Metadata;
    ids?: string[];
    pool?: Pool;
    postgresConnectionOptions?: PoolConfig;
    schemaName?: null | string;
    verbose?: boolean;
}

Properties

tableName: string
chunkSize?: number

The amount of documents to chunk by when adding vectors.

Default

500
collectionMetadata?: null | Metadata
collectionName?: string
collectionTableName?: string
columns?: {
    contentColumnName?: string;
    idColumnName?: string;
    metadataColumnName?: string;
    vectorColumnName?: string;
}

Type declaration

  • Optional contentColumnName?: string
  • Optional idColumnName?: string
  • Optional metadataColumnName?: string
  • Optional vectorColumnName?: string
distanceStrategy?: "cosine" | "innerProduct" | "euclidean"
extensionSchemaName?: null | string
filter?: Metadata
ids?: string[]
pool?: Pool
postgresConnectionOptions?: PoolConfig
schemaName?: null | string
verbose?: boolean

Generated using TypeDoc