Skip to main content
Nebius Embedder is a class that allows you to embed documents using Nebius AI Studio’s embedding models. It extends the OpenAI Embedder class and uses a compatible API interface.

Parameters

ParameterTypeDescriptionDefault
idstrThe model ID to use for embeddings"BAAI/bge-en-icl"
dimensionsintOutput dimensions of the embedding1024
encoding_formatLiteral["float", "base64"]Format of the embedding output"float"
userOptional[str]A unique identifier representing your end-userNone
api_keyOptional[str]Nebius API keyEnvironment variable NEBIUS_API_KEY
organizationOptional[str]Organization ID for API requestsNone
base_urlstrBase URL for API requests"https://api.studio.nebius.com/v1/"
request_paramsOptional[Dict[str, Any]]Additional parameters for embedding requestsNone
client_paramsOptional[Dict[str, Any]]Additional parameters for client initializationNone
openai_clientOptional[OpenAIClient]Pre-configured OpenAI clientNone
enable_batchboolEnable batch processing to reduce API callsFalse
batch_sizeintNumber of texts to process in each API call100
I