文本嵌入
create_embeddingsGenerates text vector embeddings using specified models, supporting single strings or arrays of text. Compatible with OpenAI embedding models.
Instructions
生成文本向量嵌入(OpenAI 兼容)。model 用嵌入模型 id(如 text-embedding-3-small、jina-embeddings-v3)。input 为字符串或字符串数组。
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_embeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | 待嵌入文本,单条或数组 | |
| model | Yes | 嵌入模型 id |