Large language models are famous for what they can generate. Far less discussed — and often more important in an enterprise setting — is how they find what to say it about. An LLM's training data is frozen and generic; your company's contracts, tickets, product catalog, and internal wikis are not in it. Vector search is the bridge between the two.

Definition

A vector (or "embedding") is a long list of numbers that represents the meaning of a piece of text, image, or other content — generated by a specialised model. Vector search finds the items whose meaning is most similar to a query's meaning, by comparing these number lists mathematically, rather than matching keywords.

The problem it solves: meaning, not keywords

Traditional search matches words. Search your knowledge base for "cancel a subscription" and a keyword engine may miss a document titled "ending your plan" — the words don't overlap, even though the meaning is identical. Embedding models convert both phrases into vectors that land close together in a high-dimensional space, precisely because the underlying meaning is the same. Vector search retrieves by proximity in that space, so it finds relevant material even when the phrasing doesn't match at all.

This is what makes it the practical foundation of retrieval-augmented generation (RAG): instead of hoping the model already "knows" your business, you retrieve the handful of most relevant internal documents at the moment of the question, and hand them to the model as context before it answers.

An agent is only as grounded as what it can retrieve. Vector search is what stands between "plausible-sounding answer" and "answer backed by your actual data."

Where it shows up inside an agent

01

Knowledge grounding

Before answering a question, the agent retrieves relevant passages from your documentation, policies, or product data — reducing fabrication and keeping answers current without retraining a model.

02

Long-term memory

Past conversations, resolved cases, and prior decisions can be embedded and retrieved later — giving an agent continuity across sessions instead of starting fresh every time.

03

Tool and example selection

In systems with dozens of available tools or past examples, vector search narrows the field to the handful most relevant to the current request, keeping the model's decision space manageable.

What "good" looks like in production

The quality of vector search depends on decisions that are easy to get wrong quietly: how documents are chunked before embedding, which embedding model is used and how it's kept current, how retrieved results are re-ranked before being handed to the model, and how access control is enforced so an agent never retrieves — and therefore never leaks — something the requesting user isn't entitled to see.

This is also a genuine infrastructure decision, not just a modeling one. Vector databases such as Pinecone, Weaviate, and Qdrant, or vector-capable extensions of databases you may already run (like pgvector), all trade off differently on latency, scale, and operational overhead — the right choice depends on your data volume and existing stack, not on which one is trending.

<100ms
Typical retrieval latency target for a production RAG lookup at moderate scale
1
Access-control layer must sit in front of retrieval — never rely on the model to withhold what it was handed
2 types
Vector search finds similar meaning; it's often paired with graph search for explicit relationships (more on that next)

Key takeaways

  • Vector search retrieves by meaning, not keyword overlap — the foundation of grounding an agent in your real data.
  • It underpins knowledge grounding, long-term memory, and tool selection inside agentic systems.
  • Chunking strategy, embedding freshness, and access control determine quality far more than which vendor you pick.
  • It's the difference between an agent that sounds right and one that's actually right about your business.

Not sure your retrieval layer is production-ready?

We audit and architect the retrieval infrastructure underneath production agentic systems.

Talk to us →