insert_kb
Insert data from a SQL query into a MindsDB knowledge base with batch processing, thread control, and duplicate handling options.
Instructions
Insert data into a knowledge base from a source query. Supports batch processing.
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": {
"kb_name": "<kb_name>",
"source_query": "<source_query>"
},
"name": "insert_kb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kb_name | Yes | Knowledge base name | |
| source_query | Yes | SELECT query for source data | |
| batch_size | No | Batch size (default: 1000) | |
| threads | No | Thread count (default: 1) | |
| skip_existing | No | Skip existing records (default: false) |