create_embedding
Generate vector embeddings from text or arrays of text using a specified LiteLLM model, enabling semantic search, clustering, and similarity measurements.
Instructions
Generate embeddings using LiteLLM
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 |
|---|---|---|---|
| input | Yes | Text or array of texts to embed | |
| model | Yes | The embedding model to use (e.g., text-embedding-ada-002) |