Skip to main content

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, 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 - suitable for ad-hoc or infrequent searches.
    Querying static-indexes that index vector fields - 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 section.

  • Vector search queries also empower other AI features in RavenDB such as GenAI and AI Agents.
    These features can use vector search to retrieve relevant documents in response to LLM requests.

  • On this start page, you'll find:


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.


AI image search with RavenDBExternal

AI image search with RavenDB

Build AI-powered image search with text and image queries using CLIP embeddings, by Paweł Lachowski.

Read article
Using vector search for post recommendationsExternal

Using vector search for post recommendations

Real-world implementation of blog post recommendations based on content similarity using RavenDB’s vector search, by Oren Eini.

Read blog post
Using vector search with AI agentsExternal

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.

Read blog post

Learn more about enhancing your applications using vector search operations.

Taking over the world with AI and RavenDBExternal

Taking over the world with AI and RavenDB

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.

Watch
Vector search in RavenDBExternal

Vector search in RavenDB

The AI trend developers simply cannot ignore.

Watch
In this article