Embeddings and Vector Stores

How AI Searches by Meaning

Keyword search finds matching words. AI search finds matching meaning. It works by turning text into numbers and comparing them.

Ranjit Nethi

·

Embeddings and Vector Stores

The short version

  • An embedding turns a piece of text into a list of numbers that captures its meaning.
  • Texts with similar meaning get similar numbers, so the system can find related content even when the words differ.
  • A vector store is the database that holds these numbers and finds the closest matches quickly.

The idea

An embedding model reads a passage and outputs a vector: a list of several hundred or more numbers. Passages with similar meaning land close together in this number space. “Motor will not start” and “drive fails at power-up” share few words and end up near each other.

A vector store saves the vectors for all your passages. When a question arrives, it is embedded the same way, and the store returns the passages whose vectors are closest. This is semantic search.

Imagine a library where books are shelved by topic, not by title. To find something, you walk to the right area and look at what is nearby. An embedding gives every passage a place on the shelves, and the vector store is the librarian who knows what sits next to what.

  1. Text
  2. Embedding model
  3. Vector
  4. Vector store
  5. Closest matches to the question

Choosing a vector store is mostly an operations decision. Many teams start with the vector feature of a database they already run. A dedicated vector database earns its place at large scale or with heavy filtering. The questions to ask are: how many vectors, how fast, what filters, and who will run it.

Semantic search has a known weakness. It is poor at exact matches such as part numbers and codes, where one character matters. Section 4.4 covers the fix, which is to combine it with keyword search.

An example

A technical support team has 40,000 past cases. A keyword search for “overheating” misses cases written as “thermal trip” or “runs hot”. After embedding all the cases, a search for “overheating” returns those as well, because the meaning is close. Resolution time falls because technicians find the earlier fix on the first search.

Common mistakes

  • Using embeddings alone for part numbers and exact codes.
  • Changing the embedding model without re-embedding all the content.
  • Embedding whole documents, so one vector tries to represent 50 pages.
  • Choosing a database before knowing the scale.

What to do this week

  1. Pick 20 real questions and compare keyword search with semantic search on your content.
  2. Note where each one wins. That tells you whether you need both.
  3. Ask your data team whether your current database already supports vectors.

The terms, in plain language

TermWhat it means
EmbeddingA list of numbers that represents the meaning of a text
VectorThe list of numbers itself
Vector storeA database that finds the closest vectors quickly
Semantic searchSearch by meaning, not by exact words

Section 4.1 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.