AI glossary

What is Embeddings?

Definition

Embeddings are lists of numbers (vectors) that represent the meaning of text, images or other data, so that similar meanings end up close together and can be found by similarity search.

An embedding model turns a piece of text, such as “How do I reset my password?”, into a vector of a few hundred or thousand numbers. The text “I forgot my login” produces a nearby vector, even though it shares no keywords.

How it works

Distance between vectors (often cosine similarity) measures how related two pieces of content are. To search, you embed the query and find the stored vectors closest to it.

Common uses

  • Semantic search: find documents by meaning, not exact words
  • RAG: retrieve relevant context for an LLM
  • Recommendations: “similar articles” or “related products”
  • Clustering and deduplication: group similar support tickets or feedback

Tips

  • Use the same embedding model for documents and queries.
  • Test models on your own data; multilingual or technical content may need specialised models.
  • Combine embeddings with keyword search (hybrid search) to catch exact terms like product codes.
Free newsletter

The Agent Brief

One practical email a week on AI agents, RAG and generative AI, for builders and business owners. No hype, no spam.