Train KB Documents
lyzr_kb_train_documentsIngest document objects into a knowledge base to train it. Provide the knowledge base ID and an array of documents to update its knowledge.
Instructions
Ingest an array of document objects into a knowledge base. Each document is a free-form object.
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": {
"rag_id": "<rag_id>",
"documents": "<documents>"
},
"name": "lyzr_kb_train_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rag_id | Yes | Knowledge base id | |
| documents | Yes | Array of document objects to ingest |