Numbers That Remember: A Vector Store Privacy Test for UK AI Teams
Photo: Alexandru Panoiu from Bucharest, Romania, CC BY 2.0, via Wikimedia Commons
A retrieval-augmented pilot is usually approved on a reassuring premise: the model never reads the whole corpus, only a handful of passages at a time. Somewhere behind that promise sits a vector store holding one embedding for every chunk. Because an embedding presents as an array of floats, it tends to be classified as metadata and waved through the same review a row count would pass. That classification is where the trouble starts.
Three things live in a collection
Almost every vector database stores more than the vector. There is the numeric embedding, there is the source text or a pointer to it, and there is a metadata payload of tags, dates, tenant identifiers and frequently the document title. Teams commonly assume that only the payload deserves scrutiny. In practice each of the three can disclose something.
The numeric layer is the least understood. Embeddings are not one-way. For short passages — a support ticket, a complaint, a contract clause — inversion techniques can recover a surprising proportion of the original wording. Even where reconstruction fails, similarity search operates as a membership test. A colleague without access to an HR case file can still establish that a specific grievance exists, in a specific month, involving a specific site, simply by querying for it and reading the confidence of the nearest neighbours.
Half a day, two questions
The test is scoped to two questions that a pilot review rarely asks: can the store return anything the caller is not entitled to see, and can it prove that something we deleted is actually gone. Four hours is enough to answer both honestly.
09:00 — Define the boundaries
Choose four personas whose access differs in the source system: a field sales user, an HR business partner, a finance analyst and an external contractor. For each, list five documents they must not see. Those twenty documents become the test corpus.
09:45 — Query across the line
Write thirty prompts a reasonable person in each persona would type. Run each through the retrieval path exactly as the application does, including any filter the application applies. Log the top five results, the similarity scores and whether chunk text was returned. The failure pattern is consistent: filters are applied at the application layer and forgotten at the collection layer, so a direct query bypasses them. Expect at least two persona tests to fail on the first pass.
11:00 — Attempt reconstruction
Take the five closest chunks returned by a sensitive query and ask the generator to reproduce them verbatim. Then read the metadata payload as an attacker would: titles, file paths and free-text tags leak more than body text often does. Note which fields map back to primary keys in the source system — that mapping is the bridge from an anonymous vector to a named individual.
11:45 — Prove the erasure
Index twenty documents for a synthetic data subject, five of which contain a unique marker string. File an erasure request through the normal process, wait for the pipeline to run, then search. Query the collection for the marker. Run a plain text search over the raw index files and any snapshot taken in the preceding week. Record elapsed time to confirmed absence.
The usual finding is uncomfortable. Deleting the source row removes the row; the index entry survives as a tombstone, the snapshot retains the full original, and the evaluation set used to tune the retriever has quietly captured a sample. A vector store that cannot demonstrate absence is a store that has not deleted anything.
What to write into the contract
The technical findings matter less than what the paperwork allows. Four clauses are worth pressing for in any embedding or vector platform agreement.
Deletion parity. Embeddings must be removed on the same schedule as the source record, with a stated maximum lag. Ask specifically whether backups, replicas and disaster-recovery snapshots are covered, and over what retention window.
Index and re-index obligations. If deletion is implemented by rebuilding an approximate index, ask for the rebuild cadence in writing. A monthly rebuild is a different data protection posture from a weekly one.
Model improvement. Confirm that customer content and any derived vectors are excluded from training or evaluation of the vendor's embedding models by default, not on request.
Sub-processors. The embedding model provider and the hosting region are sub-processors. List them, and confirm where inference and storage physically occur. The UK international data transfer addendum remains the practical instrument for anything leaving the UK.
The checklist
- Access filters enforced at the collection rather than the application, and tested per persona
- Metadata payloads reviewed for free text and personal identifiers
- A named owner for deletion verification, with a measured elapsed time
- Snapshots and evaluation sets brought inside the retention schedule
- Contract terms on deletion parity, index rebuilds, model improvement and sub-processors
- A recorded decision on whether the collection holds special category data
None of this requires a new platform. It requires half a day, four personas and a willingness to be embarrassed by the first query. The teams that run the test before procurement tend to find the gaps while they are still cheap.