Create embeddings
create_embeddingGenerates embedding vectors from text or token arrays for semantic search, clustering, and similarity tasks. Specify a model and input to obtain numerical representations.
Instructions
Creates an embedding vector representing the input text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"input": "<input>"
},
"name": "create_embedding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | End-user identifier | |
| input | Yes | Input text(s) or token array(s) to embed. | |
| model | Yes | ID of the model to use | |
| dimensions | No | Output vector dimensions | |
| encoding_format | No | Output format | float |
| X-TokenLab-Delivery-Policy | No | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |