pgvector

PostgreSQL extension storing vectors in tables, exact search by default with optional HNSW and IVFFlat indexes.

Provider
default
Category
Data
Properties · 4 set by this component
propertytypevaluesrequiredkind defaultthis component
annIndex · component propertyenumnone | hnsw | ivfflatnononeinherited
dimensionsinteger—no—inherited
distanceMetricenumcosine | euclidean | dot-productno—inherited
hybridSearchboolean—nofalseinherited
indexTypeenumflat | hnsw | ivf | disk-ann | lshno—▸ flat
managedboolean—nofalse▸ false
maxDimensions · component propertyinteger—no16000inherited
metadataFilteringboolean—nofalse▸ true
namespacesboolean—nofalseinherited
quantizationenumnone | scalar | product | binarynonone▸ none
replicasinteger—no—inherited
vectorType · component propertyenumvector | halfvec | bit | sparsevecnovectorinherited
Rules that apply · 0

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

No rule reads this kind yet. That is a gap, not a guarantee.
Use it in a design
nodes:
  - { id: "pgvector", component: "pgvector" }
Other Vector database products · 23
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# pgvector: PostgreSQL extension storing vectors in ordinary tables. README: exact nearest neighbour
# search with perfect recall is the default, HNSW and IVFFlat indexes are opt-in; L2, inner product,
# cosine, L1, Hamming and Jaccard operators; vector and halfvec hold up to 16000 dimensions.
schemaVersion: "1"
type: "component"
id: "pgvector"
kind: "vector-database"
provider: "default"
docs: "https://github.com/pgvector/pgvector"
defaults:
  indexType: "flat"
  quantization: "none"
  metadataFiltering: true
  managed: false
properties:
  annIndex:
    type: "enum"
    values: ["none", "hnsw", "ivfflat"]
    default: "none"
  vectorType:
    type: "enum"
    values: ["vector", "halfvec", "bit", "sparsevec"]
    default: "vector"
  maxDimensions:
    type: "integer"
    default: 16000

The same page as markdown, for an agent: /catalogue/components/pgvector.md