ingest_file
Upload a single local PDF, DOCX, XLSX, PPTX, MD, HTML, CSV, or TXT file into a collection. The file is processed with format-specific quality handling to ensure clean, searchable content for RAG.
Instructions
Ingests a single local file (PDF, DOCX, XLSX, PPTX, MD, HTML, CSV, or TXT) into a collection, with format-specific quality processing. Use this for one file at a time; use ingest_directory for a whole folder.
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": {
"collection": "<collection>",
"path": "<path>"
},
"name": "ingest_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| collection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| collection | Yes | ||
| source_path | Yes | ||
| chunks_created | Yes | ||
| discard_reasons | Yes | ||
| pages_discarded | Yes | ||
| duplicates_found | Yes |