generate_embeddings
Generate vector embeddings for one or more texts using Cloudflare Workers AI (bge-base-en-v1.5, 768-dim).
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": {
"text": "<text>"
},
"name": "generate_embeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text or array of texts to embed | |
| model | No | CF AI model ID override |