IT Glossary
What is an embedding (vector representation)?
An embedding is the numerical representation of the meaning of a text, an image or a product: a list of numbers that lets a computer compare senses rather than spellings.
- 6
- sections
- 6
- questions answered
An embedding (also called a vector representation) is a list of numbers, from a few hundred to a few thousand, that an AI model calculates for a text, an image or a product so that content with similar meaning receives similar lists. OpenAI's text-embedding-3-small returns 1,536 numbers for each text, and Google's Gemini Embedding returns 3,072 by default. Closeness between two lists is usually measured with cosine similarity.
Imagine every document your company owns placed on a map where distance means similarity of meaning rather than similarity of spelling. The complaint about a leaking valve and the ticket about water under the machine sit next to each other, even though they share no words. Comparison becomes arithmetic, which computers are very good at. This is the quiet machinery behind most useful AI features in a business setting: search that finds the right answer when the customer used different words than your manual, chatbots that answer from your own documents because the relevant paragraphs are retrieved by meaning before the language model writes anything, duplicate detection across supplier catalogues, product recommendations and automatic ticket routing.
Why it matters for your business
Search by meaning, not exact words
Customers and staff find the right document even when their vocabulary differs completely from the one used in your content.
Automatic grouping and recommendation
Similar tickets, duplicate products and related articles cluster on their own, without anyone maintaining rules or tags by hand.
The foundation for chatbots on your data
Retrieval by meaning is what lets an assistant answer from your manuals and policies instead of inventing plausible text.
How an embedding works, step by step
A search-by-meaning system works in five steps. First, documents are split into short fragments. Then an embedding model turns each fragment into a vector, a list of numbers of fixed length. The vectors are saved in a vector database. When a user asks a question, it is converted into a vector with the same model. Finally, the system picks the fragments whose vectors have the highest cosine similarity to the question's vector.
The effect is visible in practice: a search for “annual leave” also finds the document that talks about “paid days off”, because the two phrasings get nearby vectors.
How many dimensions an embedding has
It depends on the model. According to OpenAI's documentation, text-embedding-3-small produces vectors of 1,536 numbers and text-embedding-3-large 3,072. Both can be shortened with the dimensions parameter (for example to 1,024) at a small cost in accuracy. Google's Gemini Embedding outputs 3,072 numbers by default; Google recommends 768, 1,536 or 3,072 and accepts any value from 128 to 3,072. For OpenAI's models and Google's gemini-embedding-2 the input limit is 8,192 tokens per text (gemini-embedding-001 accepts 2,048).
A single number inside the vector has no meaning on its own; what counts is the position of the whole vector relative to the others. The classic example comes from the word2vec paper (Mikolov and colleagues, Google, 2013): the vector for “King” minus the one for “Man” plus the one for “Woman” lands closest to “Queen”. Figures checked on 18 November 2026 in the OpenAI and Google documentation.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
Embedding, LLM and vector database: who does what
The three are often confused, but they do different jobs. The embedding model finds: it takes a text and returns a fixed list of numbers. The LLM writes: it generates new text, token by token. The vector database stores the vectors and looks up the ones closest to a question. A RAG system chains them in that order: it retrieves fragments, then the LLM words the answer from them.
Compared with fine-tuning the difference is simple: fine-tuning changes the model, while embeddings leave the model as it is and bring your company's data to it with every question.
Where embeddings do not help: exact codes and hybrid search
Embeddings match meaning, not characters. A tax ID, an invoice number, a product code or a contract number is found more reliably by classic text search. Good systems combine the two methods, which is called hybrid search.
Two more practical limits apply. Long documents with mixed topics are split by topic before calculation, otherwise the vector represents an average of all of them. And vectors of different lengths cannot be compared (1,536 numbers against 3,072), so the question and the documents are always converted with the same model; if you change the model, you recalculate every vector.
Frequently asked questions
Is there a Romanian word for embedding?
Romanian uses “încorporare” or “reprezentare vectorială”, but in AI the English term usually stays as it is. It always means the same thing: the list of numbers that captures the meaning of a text, an image or a product, so that software can compare by sense.
How do embeddings relate to vector databases?
One produces, the other stores. A model converts content into vectors; a vector database keeps large numbers of them and answers which are nearest to a given point. A regular database such as PostgreSQL with the pgvector extension can also store and search vectors, and specialised engines suit larger volumes.
What is the difference between an embedding model and an LLM?
An embedding model turns a text into a fixed list of numbers and is used for finding; an LLM generates new text and is used for writing. A chatbot on company documents uses both: first it retrieves the matching fragments, then it words the answer from them.
How many dimensions does an embedding have?
It depends on the model. OpenAI uses 1,536 dimensions for text-embedding-3-small and 3,072 for text-embedding-3-large, and Google's Gemini Embedding 3,072 by default; both can be shortened. More dimensions capture finer nuances but take more storage space.
Our content is in Romanian: do embeddings work as well?
Yes. Google states that gemini-embedding-2 works across over 100 languages, and multilingual models from other providers include Romanian too. On niche jargon, legal, medical or technical, models differ visibly, so test two or three on your own documents before choosing.
Can embeddings be made from things other than text?
Yes. Images, audio, products and user behaviour can be turned into vectors. Multimodal models place text and images in one space: Google describes gemini-embedding-2 as the first multimodal embedding model in the Gemini API, so a written description can retrieve a photograph.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851