TL;DR: A vector upsert dimension mismatch means the embedding array length does not equal the index's configured dimension. Stop the batch, measure the vectors in Node.js, compare that measurement with an immutable index contract, and quarantine every nonconforming record before any upsert. Do not pad, truncate, or retry the same payload. Those moves hide the contract violation and can corrupt retrieval quality.
For a fintech team answering questions over a folder of PDFs, the first concern is containment. One malformed page should not turn a 20,000-chunk filing import into a retry storm, and a model change should not silently mix incompatible vectors into the corpus.…