embed_text
Convert text into vector embeddings for similarity search and downstream machine learning tasks. Supports configurable dimensions and L2 normalization for cosine similarity.
Instructions
Embed text(s) into vectors.
Args: texts: One or more strings to embed. dim: Matryoshka truncation dimension; one of 512, 256, 128, 64, 32. normalize: L2-normalize the output (recommended for cosine similarity).
Returns a dict with the embeddings (list of float lists) and dimension.
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": {
"texts": "<texts>"
},
"name": "embed_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | No | ||
| texts | Yes | ||
| normalize | No |