// troubleshooting guide · pgvector

pgvector Dimension Limit: Cannot Index More Than 2000 Dimensions

Status
Workaround available
platforms:
All
updated:
November 15, 2026
reports:
4
Method
how we research
Share

RUNBOOK · pgvector/vector-dimension-limit-20003 FIXES

// quick answer

A vector column stores up to 16,000 dimensions but HNSW and IVFFlat index at most 2,000. Use halfvec (4,000) or reduce the embedding size.

Most likely fix: Use halfvec

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Use halfvec

    1. 01Store as halfvec(n) and index with halfvec ops, supports up to 4,000 dimensions
    Did this fix it?
  2. FIX 2Request fewer dimensions

    1. 01Ask the embedding model for a smaller size, one NVIDIA forum fix used 1536
    2. 02Or apply dimensionality reduction
    Did this fix it?
  3. FIX 3Skip the index

    1. 01Exact search works without an index at 16,000 dimensions storage limit, but is slower on large tables
    Did this fix it?

Symptoms

CREATE INDEX fails for embeddings such as 3,072 dimensions.

Why it happens

  • C-01vector index cap is 2,000
  • C-02Embedding model output too large

// this guide also covers

  • pgvector max dimensions
  • column cannot have more than 2000 dimensions for hnsw index
  • pgvector 3072 dimensions

Still not working?

If pgvector keeps failing, you're not alone. See every pgvector problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch pgvector Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All plan limits, paywalls & watermarks guides →

Other pgvector errors

All 11 pgvector errors and fixes →