intellibrix v1.0.0
    Preparing search index...

    Class PgVectorStore

    A VectorStore on Postgres + pgvector. Ranks by cosine similarity (<=>), and reports score as 1 - cosine distance so it is comparable with the in-memory and SQLite stores.

    The table and extension are created on first use.

    Implements

    • VectorStore
    Index
    • Parameters

      • ids: string[]

      Returns Promise<void>

    • Parameters

      • vector: number[]
      • Optionalopts: { topK?: number }

      Returns Promise<VectorMatch[]>

    • Parameters

      • records: VectorRecord[]

      Returns Promise<void>