Ingest Chunks

POST

Ingest text chunks into the system.

This endpoint supports multipart/form-data requests, enabling you to ingest pre-parsed text chunks into R2R.

A valid user authentication token is required to access this endpoint, as regular users can only ingest chunks for their own access. More expansive collection permissioning is under development.

Request

This endpoint expects an object.
chunkslist of objectsOptional

A list of text chunks to ingest into the system.

document_idstringOptional

An optional document id to associate the chunks with. If not provided, a unique document id will be generated.

metadatamap from strings to anyOptional
run_with_orchestrationbooleanOptional

Whether or not ingestion runs with orchestration, default is True. When set to False, the ingestion process will run synchronous and directly return the result.

Response

Successful Response

resultslist of objects

Errors