Connecting AI to your data · Layer 3
Embeddings (vector representations)
A list of numbers that captures the meaning of a text: two texts with similar meanings get similar numbers.
A way to picture itImagine a vast map where every sentence is placed according to its meaning: “contract termination” sits next to “ending the agreement”, with no word in common. Searching means looking at what lies near your question.
An insurer indexes its 3,000 procedure sheets using embeddings. An adviser types “the customer cracked their phone screen” and finds the sheet on “accidental damage to portable devices”, which a keyword search would have missed. Searching for a contract number, on the other hand, fails: codes are better found by keyword. The tool finally chosen therefore combines both.
A vector computed from personal text is still personal data: researchers recovered 92% of 32-token texts word for word from their embeddings alone, and retrieved full names from clinical notes (United States · Cornell University, EMNLP 2023). The vector database must therefore be protected like the original documents: encryption, access control, retention period (EU · GDPR, art. 32). A deletion at source must carry through to the index, otherwise the erased data can still be queried. Vector and embedding weaknesses rank among the ten main risks for large language model applications (international · OWASP).
“Where are the embedding model and the vector database hosted, how are our documents’ access rights applied there, and how quickly is a deletion at source reflected?”
Usually not: it is a smaller, specialised model, often from another vendor. It can run on your own servers even if the LLM is hosted elsewhere.
Partly, yes: published research shows that a vector can be turned back into text with good fidelity. It should therefore be treated as sensitive data, not as an anonymous fingerprint.
No. Embeddings bring texts together by statistical resemblance; a semantic layer sets explicit business definitions, each with an owner. The two complement each other.
Educational explainer, not legal advice. Up to date as of 29 October 2026.