Ingestion
Ingesting files with R2R.
Document Ingestion and Management
Ingest Files
Ingest files or directories into your R2R system:
An array of file paths, File objects, or objects with path and name properties to ingest.
The ingestion config override parameter enables developers to customize their R2R chunking strategy at runtime.
Update Files
Update existing documents:
An array of File objects or objects with path and name properties to update.
An array of document IDs corresponding to the files being updated.
An optional array of metadata objects for the updated files.
The ingestion config override parameter enables developers to customize their R2R chunking strategy at runtime.
Documents Overview
Retrieve high-level document information, restricted to user files, except when called by a superuser where it will then return results from over all users:
An optional array of document IDs to filter the overview.
Document Chunks
Fetch chunks for a particular document:
The ID of the document to retrieve chunks for.
Delete Documents
Delete a document by its ID:
A list of logical filters to perform over input documents fields which identifies the unique set of documents to delete (e.g., {"document_id": {"$eq": "9fbe403b-c11c-5aae-8ade-ef22980c3ad1"}}
). Logical operations might include variables such as "user_id"
or "title"
and filters like neq
, gte
, etc.
Was this page helpful?