graphile-pgvector

Installation
SKILL.md

Graphile + pgvector Integration

Integrate pgvector with PostGraphile v5 (Grafast/graphile-build-pg) so that vector(n) columns are surfaced in GraphQL as a Vector scalar, and vector similarity search is available as first-class GraphQL query fields.

When to Apply

Use this skill when:

  • Adding vector(n) columns to tables and need them visible in the PostGraphile schema
  • Exposing vector similarity search (cosine, L2, inner product) as GraphQL queries
  • Building AI/RAG features on top of a Constructive or PostGraphile v5 stack
  • Writing integration tests for pgvector-backed GraphQL APIs

Two Moving Parts

Component Package What it does
VectorCodecPlugin graphile-settings Registers a codec for the vector PG type → Vector GraphQL scalar; makes embedding columns visible
PgVectorPlugin / PgVectorPreset postgraphile-plugin-pgvector Adds vectorSearch<Table> root query fields with query, limit, offset, metric args
Related skills

More from constructive-io/constructive-skills

Installs
5
First Seen
Mar 5, 2026