Schemas
The only document-specific layer in Docex is the optional built-in schema registry (apps/worker/src/registry.js). Users can bypass it entirely by supplying their ownschemaat request time.
Built-in schemas
The registry includes convenience defaults for common tasks:Custom schemas
The biggest unlock of the task-agnostic architecture is user-defined schemas. Pass any schema at request time without touching the registry:Schema ID vs. custom schema
- Use
schemaIdto reference a built-in registry schema - Use
schemato provide an inline custom schema - If neither is provided, the prompt alone drives the analysis (generic vision summary)
Backward compatibility
The olddocTypeHint parameter is mapped to schemaId internally. Existing code using docTypeHint will continue to work.