Skip to main content

Ingest a file into a chunked document

POST 

/api/v1/documents/ingest

Parses an already-uploaded file and creates one Document split into one or more embedded chunks. The source format is detected from the file's content type: PDFs are parsed page-by-page; text/plain and text/markdown files are read as a single source. How the source is chunked is controlled by chunk_strategy.

Request

Responses

Ingestion completed synchronously (only when ?async=false). The document is fully indexed and ready for search.