# Vector Search

- **Canonical URL:** https://getaimath.com/dictionary/vector-search/
- **Topics:** [Context, Memory & Retrieval](https://getaimath.com/dictionary/category/context-memory-and-retrieval/)
- **Last updated:** 2026-11-25

## What is Vector Search?

**In one sentence:** Vector search finds the items whose embedding vectors are closest to the vector of your query.

Every document is turned into a vector of numbers. Your question is turned into a vector too. The search returns the documents whose vectors point in the most similar direction.

![Context Window vs. Memory: Your Desk vs. The Filing Cabinet — Simple cartoon comparing the AI Context Window (a small desk that can only fit a few pages right now) with External Memory & Search (a big filing cabinet where a librarian grabs just the 3 pages you need).](https://getaimath.com/diagrams/context-memory-and-retrieval.png)
*Napkin Diagram (Context, Memory & Retrieval): The context window is the small desk the AI can see right now; search grabs the right pages from the filing cabinet.*

## What is an example of Vector Search?

A photo app finds pictures similar to your beach photo by comparing their image vectors.

## Why does Vector Search matter?

Vector search is the engine behind semantic search and many recommendation systems.

## Related Concepts

- [Semantic Search](https://getaimath.com/dictionary/semantic-search/): Semantic search finds results based on meaning, not just matching exact words.
- [Vector Database](https://getaimath.com/dictionary/vector-database/): A vector database is a database built to store embeddings and quickly find the ones most similar to a query.
- [Retrieval](https://getaimath.com/dictionary/retrieval/): Retrieval is finding and fetching the most relevant information from a large collection, such as documents, notes or web pages.
- [Embedding Model](https://getaimath.com/dictionary/embedding-model/): An embedding model is an AI model that turns text, images or other data into embeddings.
- [Sliding Window Attention](https://getaimath.com/dictionary/sliding-window-attention/): Sliding window attention lets each token look only at a fixed number of nearby earlier tokens, instead of all of them.
- [Vector](https://getaimath.com/dictionary/vector/): A vector is an ordered list of numbers, often used to represent a point or direction in many dimensions.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/vector-search/)
