Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Approximate nearest neighbor

Also written: approximate nearest-neighbor, ANN, approximate nearest neighbors

Finding vectors that are very probably the closest, much faster than checking every one. Vector databases use it to search millions of items.

Try it now

Start with the simplest one that works, and move up when the numbers force you to.

Learn it properly

Vector databases · Store and search millions of embeddings quickly. About 25 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write