Agent Provider Depot / Error Rescue Index (28 Traps) / vector-dimension-mismatch
wrong_packagetrapId: trap-vector-dimension-mismatch · asOf: 2026-10-28
Vector Dimension Mismatch (1536 vs 3072 / DimensionMismatchError)
Upgrading from text-embedding-ada-002 (1536d) to text-embedding-3-large (default 3072d) without passing dimensions: 1536 breaks existing pgvector / Pinecone / Qdrant indexes.
1. Immediate Code & SKU Fix
Replace With SKU:
text-embedding-3-small (1536d native) or text-embedding-3-large with dimensions: 1536Install Command:
npm install openai@latestRequired Env Vars:
OPENAI_API_KEYconst emb = await openai.embeddings.create({ model: "text-embedding-3-large", input: text, dimensions: 1536 });2. Verified Hot-Swap Fallback Route
JTBD: embeddings
liveHealth: operational · autoActOk: true
retrieval-quality bake-off winner is Voyage
Matched Error String Signatures (4)
DimensionMismatchErrorVector dimension 3072 does not match the dimension of the index 1536dimension mismatchexpected 1536 dimensions, not 3072curl -s "https://getagentdepot.com/api/rescue?q=DimensionMismatchError"
Browse All 28 Agent Runtime Rescue Cards
deprecated-claude-3-5-sonnetdeprecated-openai-gpt4deprecated-ada-002deprecated-google-generative-aiwrong-package-r2wrong-package-pinecone-clientwrong-package-mailgun-jsrate-limit-429provider-outage-529payment-required-402waf-bot-blocksmtp-port-25-timeoutlambda-15m-timeoutvercel-4-5mb-payloadsqlite-busyneon-cold-startsmithery-connect-shutdowngemini-preview-shutdown-2026-11-17openai-tts-1-shutdown-2027-01-06openai-insufficient-quotacontext-length-exceeded-413streaming-sse-econnresetcloudflare-1015-rate-limitvector-dimension-mismatchmcp-jsonrpc-method-not-foundsandbox-oom-exit-137postgres-too-many-connectionsheadless-browser-executable-missing