Skip to main content
A Document in R2R is the system’s digital representation of any ingested content—including PDFs, text files, web pages, images, and audio. It serves as the central container for all downstream data objects such as Chunks, Entities, and Relationships, forming the foundation for R2R’s knowledge processing pipeline. Documents transform raw content into structured, searchable, and analyzable knowledge that powers Retrieval-Augmented Generation (RAG) and agentic workflows.

Key Processes

Documents in R2R support several key stages of processing:
  • Ingestion — Accepts multiple input formats (.pdf, .docx, .txt, .png, .mp3, etc.) via file upload, raw text, or predefined chunks.
  • Chunking — Splits document content into smaller, retrievable Chunks for semantic search and analysis.
  • Metadata & Collections — Associates documents with descriptive metadata (e.g., title, source) and organizes them into Collections for access control and sharing.
  • Enrichment (Optional) — Extracts Entities and Relationships to build knowledge graphs or generates embeddings for semantic search.
  • Status Tracking — Monitors ingestion, enrichment, and extraction progress for transparency and error handling.

API Endpoints