Skip to main content

Generating embeddings

Embeddings are numeric vectors that you can create for data (like a text or an image) to capture meanings, contexts, or relationships related to the data. You can then search the data by running intelligent queries over its embeddings using vector search to find content by similarity rather than exact match.

  • RavenDB allows you to create embeddings using native ongoing embeddings-generation tasks that systematically process document collections and convert document fields (like texts or arrays) into embeddings. To create the embeddings, the tasks can use either an external AI model (such as OpenAI) or RavenDB's default embedding model.
  • You can also create embeddings using external embeddings providers and store them in your database (e.g., to handle other content types such as images).
  • You can avoid pre-generating embeddings, and let vector search operations generate embeddings on-the-fly, while searching.
  • Embeddings can be used by other RavenDB AI features. E.g., AI agents can use vector search to retrieve relevant data requested by the LLM.

Use cases

Embeddings generation tasks can be used to prepare your data for AI-powered search, analysis, and usage, e.g., for -

  • Enterprise knowledge bases
    Generate embeddings for thousands of documents, policies, and procedures to enable instant semantic search
  • Legal document libraries
    Process case law, contracts, and regulations to build searchable legal repositories
  • Product catalogs
    Convert product descriptions, specifications, and reviews into embeddings for enhanced e-commerce search
  • Content management systems
    Transform blog posts, articles, and marketing materials into searchable vector representations

Technical documentation

Learn about generating, storing, and using embeddings in RavenDB.

Embeddings generation overview

Learn the basics of embeddings generation in RavenDB

Read

Embeddings generation tasks UI

Create and configure your tasks using Studio

Read

Learn more: In-depth embeddings generation articles

Embeddings with RavenDB and External ModelsExternal

Embeddings with RavenDB and External Models

Step-by-step setup guide for AI-powered semantic search, by Paweł Lachowski

Read
The integration of embeddings generation in RavenDBExternal

The integration of embeddings generation in RavenDB

The reasoning and architecture behind RavenDB's embeddings feature, by Oren Eini

Read

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

Watch a webinar about vector search.

Watch
Vector search in RavenDBExternal

Vector search in RavenDB

The AI trend developers simply cannot ignore

Watch