Ingestion
Ingest File
Ingest a file asynchronously.
The file is uploaded to object storage, a Document stub is persisted
with status='processing'
and a background worker picks up the heavy
parsing / chunking work.
Args: file: Uploaded file from multipart/form-data. metadata: JSON-string representing user metadata. rules: JSON-string with extraction / NL rules list. auth: Caller context – must include write permission. use_colpali: Switch to multi-vector embeddings. folder_name: Optionally scope doc to a folder. end_user_id: Optionally scope doc to an end-user. redis: arq redis connection – used to enqueue the job.
Returns:
Document stub with status='processing'
.
POST
Headers
Body
multipart/form-data
Response
200
application/json
Successful Response
Represents a document stored in the database documents collection