Skip to content
Glossary · AI building blocks

Embedding (vector embedding)

Also called vector embedding, text embedding.

Definition

A list of numbers that represents the meaning of a piece of text, an image or other data, so that similar items have similar numbers.

Last updated

What it is.

An embedding model reads an input and outputs a vector, a fixed-length list of numbers. Inputs with similar meaning get vectors that are close together, even when they use different words. Comparing vectors is how semantic search finds results that match what you meant rather than the exact words you typed.

Embeddings are created once per item, stored, and compared at query time. Vectors from different embedding models cannot be mixed: if you switch models, you have to embed everything again.

Why it matters

Embeddings power search, recommendations, duplicate detection, clustering and the retrieval step in RAG. They are cheap to create compared with chat calls, but large collections still need planning for storage, re-embedding and updates.

Watch out

Common mistakes.

  1. 01

    Mixing vectors from two embedding models in the same index.

  2. 02

    Embedding whole long documents as one vector, which blurs their meaning. Embed sensible chunks.

  3. 03

    Relying only on vectors for exact matches like product codes. Combine them with keyword search.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab