Skip to main content
Version: Latest

Embeddings

The Embedding API converts text into vector representations that capture semantic meaning. Use embeddings for semantic search, clustering, and RAG applications.

Prerequisites

What you'll learn:

  • How to generate embeddings from text
  • Available embedding models and their use cases
  • How to use embeddings for semantic search and RAG

Basic Usage

curl -X POST "$OPENAI_BASE_URL/embeddings" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "jina-embeddings-v2-base-de",
"input": ["The quick brown fox jumps over the lazy dog", "Data science is fun!"]
}'

Example output:

Embedding dimension: 768
Number of vectors: 5
Token usage: Usage(prompt_tokens=41, total_tokens=41)

Available Embedding Models

ModelDimensionsLanguagesUse Case
jina-embeddings-v2-base-de768German & EnglishGerman-language RAG
text-embedding-bge-m31024MultilingualCross-language search

Check Available Models for the latest list.


Next Steps

© Deutsche Telekom AG