upsert_knowledge
Add or replace knowledge base items by title, embedding and indexing them in one batch so reusing a title updates the existing item instead of creating duplicates.
Instructions
Add or replace knowledge items. Title is the identity: re-sending the same title rewrites that item instead of creating a near-duplicate. Embeds and indexes to Qdrant in one batch. Returns embedded alongside written — an item written without a vector can never be retrieved, so compare them. Fails with 503 rather than writing anything if the embedding provider is down.
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": {
"items": "<items>"
},
"name": "upsert_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| business_id | No | Optional if active business was set via switch_business. |