curl --request POST \
--url https://api.example.com/chunking \
--header 'Content-Type: application/json' \
--data '{}'{
"status": "<string>",
"job_id": "<string>",
"collection_name": "<string>",
"error": "<string>"
}Upload and process a PDF document for chunking and indexing into a vector database
curl --request POST \
--url https://api.example.com/chunking \
--header 'Content-Type: application/json' \
--data '{}'{
"status": "<string>",
"job_id": "<string>",
"collection_name": "<string>",
"error": "<string>"
}job_id.
file parameter for uploads instead.file (for uploads) or doc_path (for legacy local paths). If neither is provided, the request will fail."queued" when successfully submitted, or "failed" if the request is invalid./chunking/status endpoint to check progress.edu_mate_<uuid>curl -X POST http://localhost:8000/chunking \
-F "file=@/path/to/document.pdf"
{
"status": "queued",
"job_id": "a3f7b9c1-4e5d-6789-0abc-def123456789",
"collection_name": "edu_mate_a1b2c3d4e5f67890abcdef1234567890"
}
{
"status": "failed",
"error": "Provide either 'file' (upload) or 'doc_path' (legacy)."
}
Show Background Job Processing
/chunking/status endpoint/chunking/status endpoint with the returned job_id to check when processing is complete.