Arke
ReferenceSchemas

File

Reference for the arke/file@v1 profile -- uploaded files with binary content and processing metadata.

Profile

arke/file@v1

Required Properties

PropertyTypeDescription
labelstringDisplay name (usually filename)
filenamestringOriginal filename
content_typestringMIME type
original_sizenumberSize in bytes

System Properties

Set automatically by the processing pipeline:

PropertyTypeDescription
cdn_urlstringProcessed file URL
archive_keystringR2 storage key
thumbnail_urlstringThumbnail URL
has_ocrbooleanWhether OCR was performed
page_countnumberNumber of pages
processing_statusstringpending / processing / complete / failed
chunk_countnumberNumber of text chunks

Relationships

PredicatePeer TypeRequiredDescription
parentfolderYesParent folder
collectioncollectionYesOwning collection (inherited from parent)
childchunkNoText chunks for RAG

ID Format

File IDs are deterministic: F + base32(SHA256(parent_id + filename)). Same file in the same location always gets the same ID.

Processing Lifecycle

Upload → Image processing → OCR → Chunking → Complete

Each stage updates the file entity with new properties and relationships.

On this page