ingest_document
Ingest PDF, Markdown, or source code files into a knowledge hub. Documents are parsed, chunked, embedded, and stored for retrieval.
Instructions
Ingest a document file into the knowledge hub.
Supports PDF, Markdown (.md/.markdown), and source code (.py, .c, .cpp, etc.). The document is parsed, chunked, embedded, and stored for later retrieval.
Parameters:
file_path: Absolute or relative path to the file to ingest
collection: Target collection name (default: "default")
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": {
"file_path": "<file_path>"
},
"name": "ingest_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the document file to ingest. | |
| collection | No | Target collection name for the document. | default |