Microsoft Azure Cosmos DB SQL API Connector > Mappings for Microsoft Azure Cosmos DB SQL API > Guidelines to write vector embeddings
  

Guidelines to write vector embeddings

You can write vector embeddings to a Microsoft Azure Cosmos DB SQL API target.
If your mapping includes a RAG ingestion pipeline where you store vector embeddings in a vector database, you can use Microsoft Azure Cosmos DB SQL API Connector to write the generated vector embeddings to the Microsoft Azure Cosmos DB SQL API target.
Before you write vector embeddings to the Microsoft Azure Cosmos DB SQL API target, consider the following prerequisites:
  1. 1Create a container and define a vector policy for the container in the Azure Cosmos DB account.
  2. 2Based on the required embedding techniques, configure the appropriate vector dimensions for the container in the Vector embedding section.
  3. Word embedding
    300 dimensions
    Sentence embedding
    768 dimensions
    Custom LLM connection
    300, 768, 1536, or 3072 dimensions
    This image shows the vector policies for a container.
    For more information about how to choose a vector embedding technique, see Vector Embeddding transformation in Transformations in the Data Integration help.

Rules and guidelines to write vector embeddings

Consider the following rules and guidelines when you write vector embeddings to Microsoft Azure Cosmos DB SQL API: