Embeddings
REST API endpoints for generating text embeddings.
The Embeddings API provides endpoints for generating vector embeddings from text, useful for semantic search, content similarity, and recommendation systems.
Overview
Embeddings convert text into numerical vectors that capture semantic meaning. Similar texts produce similar vectors, enabling:
Semantic search: Find content by meaning, beyond keyword matching
Content similarity: Identify related articles or documents
Recommendations: Suggest similar content to users
Clustering: Group similar content together
Base URL
/umbraco/ai/management/api/v1/embeddingsAuthentication
All endpoints require an authenticated backoffice user (the BackOfficeAccess authorization policy). Unlike most Management API endpoints, they don't require access to the AI section.
Endpoints
Response Model
EmbeddingResponseModel
embeddings
array
List of embedding results
embeddings[].index
int
Index of the input value (0-based)
embeddings[].vector
float[]
The embedding vector
Vector Dimensions
The vector size depends on the embedding model configured in your profile:
text-embedding-3-small
1536
text-embedding-3-large
3072
text-embedding-ada-002
1536
Working with Embeddings
Calculating Similarity
Use cosine similarity to compare embedding vectors:
Storing Embeddings
For production use, store embeddings in a vector database:
pgvector (PostgreSQL extension)
Azure AI Search
Pinecone
Qdrant
In This Section
GenerateLast updated
Was this helpful?