# Vector Index

> A map that finds close vectors fast, so you do not look at all of them.

**Field:** Artificial Intelligence  
**Category:** Retrieval & Search  
**Also known as:** ANN Index, Vector Search Index

## Think of it like

Think of it like signs in a big shop. They send you to the right aisle, so you skip the rest.

## Definition

A vector index is a structure that lets a database find close vectors without checking them all. One kind sorts vectors into groups and searches only the groups nearest the query. Another kind links each vector to its neighbors, so a search can hop toward the answer. Building the index takes time and memory. In return, each search is many times faster.

## Example

Jack's database has 5 million vectors. Without an index, each search reads all 5 million. With one, it reads a few thousand and still finds the right matches.

## Why it matters

Without an index, vector search slows down with every row you add.

## Common mistake

Forgetting that the index must be rebuilt or tuned as the data grows. Results can get worse without a sound.

## Three principles

- **Skips most vectors.** Searches where it counts.
- **Groups or graphs.** Two common kinds.
- **Costs time to build.** Saves time on search.

## Related terms

- [Vector Database](https://learn.benibix.com/term/ai/vector-database)
- [Approximate Nearest Neighbor (ANN)](https://learn.benibix.com/term/ai/approximate-nearest-neighbor)
- [Hierarchical Navigable Small World (HNSW)](https://learn.benibix.com/term/ai/hierarchical-navigable-small-world)
- [Database Index](https://learn.benibix.com/term/development/database-index)
- [FAISS (Facebook AI Similarity Search)](https://learn.benibix.com/term/ai/faiss)

![Points sorted into four groups. A question is checked against the group centres first, then only against the points in the closest group.](https://learn.benibix.com/diagrams/rt-vector-index.svg)

---

Source: https://learn.benibix.com/term/ai/vector-index
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
