index_add
Add documents to a persistent in-memory index for later querying, with optional IDs and metadata.
Instructions
Add documents to the persistent in-memory index for later querying.
Args: documents: Documents to embed and store. ids: Optional ids (auto-generated if omitted). metadatas: Optional metadata dict per document.
Returns the number added and their ids.
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": {
"documents": "<documents>"
},
"name": "index_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| documents | Yes | ||
| metadatas | No |