Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Vendors pitch dedicated vector databases for every AI project. How would you decide the company's long-term approach to vector search?

I would treat vector search as another kind of index, not as a new category of database, and make PostgreSQL with pgvector or our existing search engine the default for most projects. A dedicated vector database is chosen only when measured data size, query rate, filtering or latency needs exceed what the default can do and that benefit outweighs the cost of syncing data to another store. Because embeddings must be rebuilt whenever models change, and must respect the same access controls as the source data, the long-term rule is to keep source data and embedding pipelines independent of any store, so we can re-embed, switch and review the decision as the market consolidates.

Background to this question

Every year brings a new category of database with a strong vendor story, and vector databases are the current one. A principal engineer is asked this question because the cost of getting it wrong is not one project but dozens: each team picks a different store, data is copied everywhere, access controls drift, and three years later the company runs six vector systems and cannot re-embed anything when a better model arrives. In this answer, we will look at what vector search actually adds to a system, the criteria I would use to evaluate options, the two long-term facts that matter most, embedding churn and security, and how I would turn all of that into guidance that teams can follow.

1A Quick Recap: Vector Search Is an Index

An embedding is a fixed-length array of numbers that a model produces for a piece of content. Vector search finds the stored embeddings closest to a query embedding, usually with an approximate nearest neighbour index such as HNSW, a layered neighbour graph. Seen from the architecture, that is an index type: like a B-tree answers range queries and an inverted index answers keyword queries, a vector index answers similarity queries over a column.

That framing matters because it changes the default question. We do not ask which vector database to buy; we ask whether the stores we already run can host this index well enough. PostgreSQL has pgvector with HNSW and IVFFlat indexes. OpenSearch and Elasticsearch support vector fields and hybrid keyword plus vector ranking. Several managed databases have added vector indexes. Many projects, especially early ones, fit comfortably into one of these.

2The Evaluation Criteria, With Numbers

When a team believes they need something more, I ask them to fill in a short set of numbers rather than a feature checklist. How many vectors now and in two years, and of what dimension? What query rate at peak? What latency target at p99? How selective are the filters, for example by tenant or permission? And what does it cost to keep a second store in sync with the source of truth?

Concrete numbers make the answer obvious most of the time. Five million chunks of 1,024 dimensions is about 20 GB of floats, which fits in memory on one PostgreSQL server, and 100 queries per second at 50 ms is well within pgvector's range with tuning. Two billion vectors, or 20,000 queries per second with strict filters, is a different problem, and a store built for sharding, quantization and filtered search is justified. The sync cost is often the deciding factor: a separate store means a pipeline, a delay between writing a document and being able to find it, and a second place where deletions must happen.

Step throughDeciding where a team's vectors live
  1. Can it live next to the source data?same store, same transactions
    Yespgvector or search engineNoMeasure scale and load
  2. Under about 10M vectors and moderate QPS?measured, not guessed
    YesUse the default storeNoConsider a dedicated store
  3. Benefit worth a sync pipeline?freshness, deletes, second access model
    YesDedicated store, with reviewNoTune the default store
  4. Record the decision and review daterevisit as the market settles

4 steps in order. Play them, or step through them one at a time.

3Embeddings Change, So Plan for Rebuilds

The fact that most vendor pitches skip is that embeddings are not permanent data. When we move to a better or cheaper embedding model, every stored vector becomes incompatible, because vectors from different models live in different spaces. In practice that happens every year or two, and sometimes we run two models side by side during a migration.

So the store must be easy to rebuild. We keep the source text and metadata in the system of record, we version every embedding with its model name and version, and we design the pipeline so it can re-embed the whole corpus into a new index while the old one serves traffic, then switch. A store that is painful to rebuild, or a design where the vectors are the only copy of something, turns every model upgrade into a project. This favours keeping the pipeline under our control, independent of any one store.

4Security and Tenancy Do Not Change Because the Data Is a Vector

An embedding is derived from source data, and research has shown that a fair amount of the original text can sometimes be reconstructed from it, so it carries the same sensitivity. If a user cannot read a document, they must not be able to retrieve it through similarity search either. That means the vector store must enforce the same tenant and permission rules as the source, and deletions in the source must reach the vector index quickly, which matters for data protection requests.

This is easiest when vectors live in the same database as the data, where row-level security and deletes apply automatically. With a separate store we must replicate permission metadata, filter on it in every query, and prove deletions propagate. That is not a reason to forbid separate stores, but it is a real cost that belongs in the evaluation.

5Turning It Into Company Guidance

The outcome I would aim for is a short written standard, not a committee. The default is PostgreSQL with pgvector for transactional products, or the existing search engine where hybrid keyword and vector ranking matters. A team that wants a dedicated vector store writes a one-page design note with the numbers above, the sync and deletion plan, and the access control model, and gets a quick review from the data platform group. Approved stores go onto a small supported list, so we do not end up with six.

Independently of the store, we build one embedding pipeline as a platform: it reads from systems of record, records model versions, can re-embed on demand, and writes to whichever store a team uses. That is the real lock-in protection, because the hard part to replace is the pipeline and the data, not the index. Finally, we put a review date on the decision, perhaps yearly, because this market is young and consolidating; the right answer in 2026 may be a feature of every general-purpose database a few years later.

Questions in the one-page design note
QuestionExample answerWhy it matters
Vectors now and in 2 years4M now, 15M later, 1,024 dimsmemory and whether one node is enough
Peak QPS and p99 target150 QPS, 80 msdefault stores handle this with tuning
Filterstenant and document permissionfiltered recall and security
Freshness after a writeunder 1 minutesync pipeline cost if separate
Re-embedding planfull rebuild in 1 day, versionedmodel upgrades without downtime

6Follow-up questions

Is it not risky to bet on PostgreSQL for AI workloads?

The risk is small because the decision is reversible if the pipeline is independent. If a product outgrows pgvector, we point the same embedding pipeline at a new store and backfill. The riskier bet is spreading many specialised stores early, each with its own sync and security model.

How do you handle a team that has already chosen a vendor?

I would not force a migration without a reason. I would ask them to write the same design note after the fact, make sure deletions and permissions are handled, and put the embedding pipeline on the shared platform, so moving later stays possible.

When does a dedicated vector database clearly win?

At hundreds of millions or billions of vectors, very high query rates, heavy filtered search, or when we need features like built-in quantization and tiering that would be expensive to build ourselves. At that point the store pays for its sync and operating cost.

7Conclusion

In this answer, we treated vector search as an index type that many existing stores already provide, and made that the default. We evaluated alternatives by measured size, query rate, filtering, latency and the cost of syncing a second store. We planned for embeddings changing with models, which favours stores that are easy to rebuild, and required vector stores to honour the same access controls and deletions as the source. We avoided lock-in by keeping source data and the embedding pipeline independent, and set a review date as the market consolidates.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start by reframing the question. Vector search is a kind of index, like a B-tree or an inverted index, and many stores we already run support it: PostgreSQL with pgvector, and our search engine with vector fields and hybrid ranking.

Then, if they want more

So my default for most projects is one of those, because the vectors sit next to the source data, with the same transactions, backups and access controls, and there is no sync pipeline.

A team that wants a dedicated vector database writes a short note with numbers: vectors now and in two years, dimensions, peak query rate, latency target, how selective the filters are, freshness after writes, and the cost of syncing. Most cases fit the default; hundreds of millions of vectors or very high filtered query rates justify a dedicated store.

Two long-term facts shape the strategy. Embeddings change when we change models, maybe every year or two, so we version them and make sure any store can be rebuilt from source. And embeddings carry the sensitivity of the source, so permissions and deletions must apply in the vector store too.

To avoid lock-in, I would build one shared embedding pipeline independent of the store, keep a short supported list, and review the decision yearly as the market consolidates.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Redis documentation, MongoDB manual
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Vendors pitch dedicated vector databases for every AI project. How would you decide the...": https://scrivio-interview-library.netlify.app/databases/nosql-fundamentals/07ce71399d/