---
title: "Generating embeddings"
description: "Create vector embeddings from your document data to enable AI-powered similarity search using RavenDB's embeddings generation task."
url: "https://docs.ravendb.net/7.2/ai-integration/generating-embeddings/start"
version: "7.2"
---

# Generating embeddings

> 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."

### Create embeddings to enable AI-powered similarity search.

- [Embeddings](https://en.wikipedia.org/wiki/Embedding_\(machine_learning\)) are numeric vectors that represent the meaning, context, or relationships within the data (e.g., text or images).
  They allow you to search for similar content using [Vector search](https://docs.ravendb.net/7.2/ai-integration/vector-search/start.md), rather than exact matches.

- RavenDB can generate embeddings automatically using [Embeddings-generation tasks](https://docs.ravendb.net/7.2/ai-integration/generating-embeddings/embeddings-generation-task.md) that you define.
  These tasks process text fields from documents and convert them into vectors using either an AI model from external providers
  (e.g., [OpenAI](https://docs.ravendb.net/7.2/ai-integration/connection-strings/open-ai.md)) or [RavenDB’s built-in model](https://docs.ravendb.net/7.2/ai-integration/connection-strings/embedded.md).
  The resulting vectors are stored in a dedicated collection in your database.

- Alternatively, you can skip pre-generating embeddings via *Embedding-generation tasks* and let RavenDB generate them on-the-fly during dynamic vector search queries.
  Learn more in [Vector search using a dynamic query](https://docs.ravendb.net/7.2/ai-integration/vector-search/vector-search-using-dynamic-query.md).

- RavenDB does not generate embeddings for non-text content such as images.
  However, you can import embeddings for such content from external providers and store them in your database for similarity search.

- Embeddings also power 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),  
  which may use vector search queries to retrieve relevant documents in response to LLM requests.

### Use cases

Embeddings-generation tasks can prepare your data for AI-powered search, analysis, and retrieval.  
Common use cases include:

- Generate embeddings for thousands of documents, policies, and procedures to enable fast, semantic search.
- Process case law, contracts, and regulations to build a searchable legal knowledge base.
- Convert product descriptions, specifications, and reviews into embeddings for intelligent e-commerce search and recommendations.
- Transform blog posts, articles, and marketing materials into searchable vector embeddings.
- Generate embeddings for the semantic search step in RAG pipelines.

### Technical documentation

Refer to the technical documentation to learn how to automatically vectorize data from your documents by configuring embedding generation tasks.

- [Generating embeddings - overview](https://docs.ravendb.net/7.2/ai-integration/generating-embeddings/overview.md) - Learn what an embeddings generation task is and how it works.
- [Configure an embeddings generation task using Studio](https://docs.ravendb.net/7.2/ai-integration/generating-embeddings/embeddings-generation-task.md#configuring-an-embeddings-generation-task-from-the-studio) - Learn how to configure an embeddings generation task from Studio.

### Learn more: In-depth articles

- [Embeddings with RavenDB and External Models](https://ravendb.net/articles/embeddings-generation-with-ravendb) - Step-by-step setup guide for AI-powered semantic search, by Paweł Lachowski
- [The integration of embeddings generation in RavenDB](https://ravendb.net/articles/ai-integration-in-ravendb-embeddings-generation) - The reasoning and architecture behind RavenDB's embeddings feature, 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.
