embed
Convert text into embedding vectors for semantic analysis, supporting single strings or batch lists with optional normalization.
Instructions
Generate an embedding vector for the given text (OpenAI-compatible /v1/embeddings).
input can be a single string or a list of strings for batch embedding.
Examples: embed(model="text-embedding-nomic-embed-text-v1.5", input="hello world") embed(model="text-embedding-nomic-embed-text-v1.5", input=["hello", "world"], normalize=True)
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": "embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| model | Yes | ||
| normalize | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||