Embeddings — Vector representation of text for search, clustering and similarity.
Parameters
The set depends on the model: on the right — how many models out of 6 accept the parameter. Default and allowed values on the model page.
dimensions6 of 6
Dimensionality of the embedding vector: shorter vectors need less space and search faster but capture similarity more coarsely.
encoding_format6 of 6
How the vector is returned: as an array of numbers or as a base64 string.
Request example
Models baai/bge-base-en-v1.5-08130. For another model, insert its identifier from the table below.
python
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")
result = client.embeddings.create(model="baai/bge-base-en-v1.5-08130", input="Текст для векторизации")
print(len(result.data[0].embedding))