This directory stores document class definitions as JSON files. Each JSON file represents a document schema that can be used for document classification, entity extraction, and other document processing tasks.
Each document schema JSON file should follow this format:
{
"document_type": "invoice",
"description": "Schema for invoice documents",
"fields": [
{
"name": "invoice_number",
"type": "string",
"description": "Unique invoice identifier"
},
{
"name": "date",
"type": "date",
"description": "Invoice date"
}
]
}
Document schemas can be referenced by operators that need structured document definitions, such as:
To add a new document schema:
invoice_schema.json, purchase_order_schema.json)