Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Vector search in Postgres

Adds similarity and semantic search to Postgres with pgvector, no separate vector database.

Claude's review

8/10 Practical pgvector guide: index choice, filtered search gotchas, Node and Drizzle.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

pgvector is a PostgreSQL extension that stores vector embeddings in ordinary tables and searches them by similarity, so no separate vector database is needed. Use when someone asks for "vector search in Postgres", "store embeddings", "pgvector", "similarity search", "RAG with Postgres", "semantic search in an existing database", or "HNSW vs IVFFlat". Covers vector columns, indexes, filtered search, and Node.js and Drizzle usage.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: pgvector
description: >-
  pgvector is a PostgreSQL extension that stores vector embeddings in ordinary tables and searches them by similarity, so no separate vector database is needed. Use when someone asks for "vector search in Postgres", "store embeddings", "pgvector", "similarity search", "RAG with Postgres", "semantic search in an existing database", or "HNSW vs IVFFlat". Covers vector columns, indexes, filtered search, and Node.js and Drizzle usage.
license: Apache-2.0
compatibility: "PostgreSQL 13+ with pgvector 0.8.x (managed on Supabase, Neon, RDS, Cloud SQL and others, or self-installed). Clients for Node.js, Python and most languages."
metadata:
  author: terminal-skills
  version: "1.1.0"
  category: data-ai
  repository: https://github.com/pgvector/pgvector
  tags: "vector, embeddings, postgres, pgvector, rag"
---

# pgvector

## Overview

pgvector adds vector types, distance operators and approximate indexes to PostgreSQL. Embeddings sit next to your relational data, so filters, joins, transactions and backups work as usual. Types: `vector` (up to 16,000 dimensions stored, 2,000 indexable), `halfvec` (half precision, 4,000 indexable), `bit` (binary) and `sparsevec`. Distance operators: `<->` L2, `<=>` cosine, `<#>` negative inner product, `<+>` L1, `<~>` Hamming, `<%>` Jaccard. Latest release at the time of writing: 0.8.7 (2026-10-01); 0.8.x fixed several HNSW and IVFFlat bugs, so use the newest patch your provider offers.

Without an index, search is exact (perfect recall). With HNSW or IVFFlat it is approximate: results can differ from the exact answer.

## Instructions

### Install and enable

Hosted Postgres usually has it already; run `CREATE EXTENSION vector;` once per database. Self-hosted options: the `pgvector/pgvector` Docker image (for example `pgvector/pgvector:pg17`), `apt install postgresql-17-pgvector` from the PGDG repository, Homebrew, or building the tagged source (`git clone --branch v0.8.7 https://github.com/pgvector/pgvector.git && make && make install`). Check the version with `SELECT extversion FROM pg_extension WHERE extname = 'vector';`.

### Schema and index

```sql
CREATE TABLE documents (
  id         bigserial PRIMARY KEY,
  tenant_id  int NOT NULL,
  title      text NOT NULL,
  content    text NOT NULL,
  metadata   jsonb NOT NULL DEFAULT '{}',
  embedding  vector(1536) NOT NULL,      -- must equal the embedding model's output size
  created_at timestamptz NOT NULL DEFAULT now()
);
...

From TerminalSkills's repository, Apache-2.0 licence.

Related skills

  • Checked

    Supabase auth and database

    Builds with Supabase auth, database, storage and edge functions while avoiding common security traps.

    by supabase 3.2k
    8/101 credit
  • Checked

    AWS schema conversion

    Runs AWS DMS Schema Conversion projects to move database schemas between engines and convert SQL to match.

    by aws 3.7k
    7/101 credit
  • Checked

    Firebase Done Right

    Builds Firebase apps with safe security rules, data models that scale and reliable Cloud Functions.

    by ericrisco 691
    7/101 credit
  • Checked

    Google Workspace API Setup

    Connects your server code to Gmail, Drive, Calendar and Sheets with safe service accounts and fewer quota errors.

    by ericrisco 691
    7/101 credit
  • Checked

    Supabase Backend Security

    Wires up Supabase auth, row level security, storage and realtime so your data stays private and queries stay fast.

    by ericrisco 691
    8/101 credit
  • Checked

    NestJS API endpoints

    Adds NestJS endpoints with proper validation, status codes and the traps that break startup fixed.

    by nestjs 176
    8/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added