---
title: "Vector Search"
description: "Search by meaning and context using RavenDB vector search, which compares embeddings to find semantically similar content."
url: "https://docs.ravendb.net/7.2/ai-integration/vector-search/start"
version: "7.2"
---

# Vector Search

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

### Search by meaning and context using vector search

- Vector search enables you to retrieve content based on **semantic similarity** rather than exact keyword matches.  
  Instead of comparing text directly, RavenDB compares [Embeddings](https://en.wikipedia.org/wiki/Embedding_\(machine_learning\)),
  which are numeric vectors that represent meaning and context, allowing you to:
  - Find text by meaning rather than wording
  - Retrieve related content even when exact terms do not appear
  - Match images by visual similarity

- Vector search can be done using:  
  [Dynamic queries](https://docs.ravendb.net/7.2/ai-integration/vector-search/vector-search-using-dynamic-query.md) - suitable for ad-hoc or infrequent searches.  
  [Querying static-indexes that index vector fields](https://docs.ravendb.net/7.2/ai-integration/vector-search/vector-search-using-static-index.md) - suitable for optimized and repeated searches.

- The embeddings used for vector search can be created in several ways:  
  on the fly, via background tasks, or from external sources.  
  Learn more in the [Vector search - Overview](https://docs.ravendb.net/7.2/ai-integration/vector-search/overview.md) section.

- Vector search queries also empower other AI features in RavenDB such as [GenAI](https://docs.ravendb.net/7.2/ai-integration/gen-ai-integration/start.md) and [AI Agents](https://docs.ravendb.net/7.2/ai-integration/ai-agents/start.md).  
  These features can use vector search to retrieve relevant documents in response to LLM requests.

### Use cases

Vector search is suitable whenever you need to find similar items based on meaning or proximity, rather than exact matches.  
Common scenarios include:

- **Knowledge and document search**  
  Find relevant documentation, policies, legal texts, or enterprise reports using natural language queries.
- **Product and content recommendations**  
  Suggest similar products, articles, videos, or media based on descriptive queries and user preferences.
- **Customer support automation**  
  Route questions to the best help articles, retrieve guides, and power chatbot responses with relevant information.
- **Business intelligence and analysis**  
  Profile customers and uncover market trends by comparing behavioral and relationship-based similarities.
- **Media and content analysis**  
  Discover similar images, moderate content, and monitor social media for brand mentions and sentiment.

### Technical documentation

Refer to the technical documentation to learn how to execute dynamic vector queries, create static vector indexes,  
and understand how RavenDB automatically generates embeddings to power semantic searches across your data.

- [Vector search - Overview](https://docs.ravendb.net/7.2/ai-integration/vector-search/overview.md) - Learn about vector search in RavenDB.
- [Vector search using a dynamic query](https://docs.ravendb.net/7.2/ai-integration/vector-search/vector-search-using-dynamic-query.md) - Learn how to run a vector search using a dynamic query.

### Learn more: In-depth articles

- [Semantic Search with RavenDB, Python, and FastAPI](https://ravendb.net/articles/semantic-search-with-ravendb-python-and-fastapi) - Automate embedding generation and easily query vectorized data to find results by meaning rather than keywords, by Paweł Lachowski.
- [AI image search with RavenDB](https://ravendb.net/articles/ai-image-search-with-ravendb) - Build AI-powered image search with text and image queries using CLIP embeddings, by Paweł Lachowski.

### Related blog posts

- [Using vector search for post recommendations](https://ayende.com/blog/202915-C/using-vector-search-for-posts-recommendations) - Real-world implementation of blog post recommendations based on content similarity using RavenDB’s vector search, by Oren Eini.
- [Building an AI Agent using RavenDB](https://ayende.com/blog/203142-A/building-an-ai-agent-using-ravendb) - Comprehensive tutorial for building an intelligent HR agent using RavenDB’s AI integration, with support for queries and actions, by Oren Eini.

### Related lives & videos

- [Taking over the world with AI and RavenDB](https://www.youtube.com/watch?v=7DhbgfH_rSE) - Learn how to integrate AI into your apps using RavenDB for semantic search, vector embeddings, and LLM-powered features - with real examples from Oren Eini.
- [Vector search in RavenDB](https://www.youtube.com/watch?v=zZwid8LA-e4) - The AI trend developers simply cannot ignore.
