Documentation Index
Fetch the complete documentation index at: https://docs.docex.dev/llms.txt
Use this file to discover all available pages before exploring further.
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:| Schema ID | Use case |
|---|---|
invoice/global-accounts-payable | Extract vendor, total, line items, due date |
trade-license/uae | Extract company name, license number, expiry |
identity/passport | Extract full name, document number, date of birth |
receipt/retail | Extract merchant, items, total, date |
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.