Shelves
A shelf is a structured Markdown filesystem generated from an uploaded document. It’s the core resource in Shelv.Lifecycle
When you upload a document, the shelf progresses through these statuses:| Status | Description |
|---|---|
uploading | File received, stored in object storage |
parsing | PDF is being converted to raw Markdown via LlamaParse |
structuring | LLM is analyzing the content and creating the filesystem layout |
verifying | Content integrity checks are running (no dropped or duplicated content) |
review | Structure is ready for human inspection (if review mode is enabled) |
ready | Shelf is finalized and available for use |
failed | Processing encountered an error — can be retried |
Review Mode
When review mode is enabled, the shelf pauses at thereview status instead of going directly to ready. This lets you:
- Inspect the generated structure via the file tree
- Apply file operations (rename, delete, mkdir, write) before finalizing
- Regenerate the structure if it’s not satisfactory
review=true to enable it.
Approving a Shelf
When you’re satisfied with the structure, approve the shelf to transition it toready:
operations array to modify the structure before approval:
Regenerating
If the structure is unsatisfactory, trigger a regeneration to re-run the structuring step:Retrying Failed Shelves
If processing fails, you can retry from the beginning:Output Format
A shelf’s filesystem consists of:- Markdown files (
.md) — document content split into logical sections - Metadata (
metadata.json) — document-level information - Nested directories — representing the document’s hierarchical structure