# Semantic Search

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

## What is Semantic Search?

**In one sentence:** Semantic search finds results based on meaning, not just matching exact words.

It uses embeddings to compare the meaning of your query with the meaning of documents. So a search for "how to fix a flat tire" can find a page titled "repairing a bike puncture."

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

Searching your notes for "dog food" and finding a note about "puppy meals" is semantic search.

## Why does Semantic Search matter?

It makes search much smarter and is a key part of RAG systems.

## Related Concepts

- [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.
- [Vector Search](https://getaimath.com/dictionary/vector-search/): Vector search finds the items whose embedding vectors are closest to the vector of your query.
- [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 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.
- [Conversation History](https://getaimath.com/dictionary/conversation-history/): Conversation history is the record of past messages in a chat, sent back to the model so it knows what was said.
- [Embedding Model](https://getaimath.com/dictionary/embedding-model/): An embedding model is an AI model that turns text, images or other data into embeddings.

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