validate_categories
Validate and correct document categories by comparing them with AI-detected document types to ensure accurate medical document organization.
Instructions
Validate and fix document categories by comparing with AI-detected document types.
Checks each document's category against its structured_metadata.document_type. Reports mismatches and optionally corrects them.
Args: dry_run: If True (default), report mismatches without fixing. If False, update categories and move GDrive files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |