# Vector

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

## What is Vector?

**In one sentence:** A vector is an ordered list of numbers, often used to represent a point or direction in many dimensions.

In AI, almost everything becomes vectors: words, sentences, images and sounds. A vector like [0.2, −1.3, 0.7] has 3 dimensions; embeddings often have hundreds or thousands.

![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?

The embedding for "apple" might be a vector of 768 numbers.

## Why does Vector matter?

Vectors are the basic language AI uses to represent information.

## Related Concepts

- [Embedding Model](https://getaimath.com/dictionary/embedding-model/): An embedding model is an AI model that turns text, images or other data into embeddings.
- [Dimensions](https://getaimath.com/dictionary/dimensions/): Dimensions are the number of values in a vector, like the number of directions it can point in.
- [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.
- [Similarity Search](https://getaimath.com/dictionary/similarity-search/): Similarity search finds items that are most like a given item, using a measure of closeness.
- [Vector Search](https://getaimath.com/dictionary/vector-search/): Vector search finds the items whose embedding vectors are closest to the vector of your query.
- [Cosine Similarity](https://getaimath.com/dictionary/cosine-similarity/): Cosine similarity measures how similar two vectors are by checking the angle between them.

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