The Document Classifier workspace helps engineers prepare labeled datasets, train classification models, and perform batch inference on new documents. The workflow unfolds as Dataset > Model > Inference Result; results can be exported or, after label confirmation, used to enhance the training set. The success criteria are: samples and labels are traceable, the trained model can be used for inference, and results are reused after reaching a readable final state.
Core concepts
Dataset, Model, and Inference: A dataset consists of labeled samples. A model learns from the dataset, and inference applies the model to new samples. Managing these three separately helps pinpoint whether an issue occurs with the sample, training, or prediction result. For example, you can train a model using invoice, contract, and notification samples, then classify newly uploaded business documents.
Results and Enhancement Samples: An inference result is the model's classification output for a new sample. An enhancement sample is a training data point with manually confirmed results added.
Role definition
Engineers are responsible for importing and editing datasets, training models, running inference, and exporting or enhancing results. Data and model permissions determine whether write operations are allowed. Administrators or support personnel handle issues such as unavailable training services, resource, or network problems.
Create a document classifier
Function Entry: Open Agent > Intelligent Generation > Build > Quick Build > Document Classifier.
Usage Instructions: The creation form includes the following fields and options:
- Name (Required): Enter the name of the classifier, which is used to identify it in the My Builds list.
- Description (Optional): Enter a description of the classifier's purpose to help the team understand it.
- Visual Understanding Model: Select from a drop-down list whether to configure a model. The default is Not Configured (Manual Annotation). If configured, tags are automatically recommended when uploading training documents; if not configured, you need to select tags manually.
- Initial Tags (Optional): Preset category tags for the classifier. Separate multiple tags with commas (e.g., "VAT invoice, Ordinary invoice, Receipt"). You can also add them after creation.
Considerations: If a yellow warning Document Classification Service Not Configured appears at the top, click Go to External Service Configuration to enter System Management > External Services to configure the service URL and liveness path. Alternatively, click Redetect to confirm the service is available before creating.
FAQ
What to do if the training page shows the service is unavailable
First, check the training service status and model configuration, then confirm the dataset permissions and format. After fixing the issue, reopen the model page. Submit the task only after seeing that the model is available for inference.
Can all predicted results be enhanced back into the training set?
This is not recommended. First, check each category and sample individually. Enhance only the results that are confirmed to be correct to avoid contaminating the training data with false predictions.
Edit field types in the CSV extraction configuration
CSV extraction configuration supports manual adjustment of field types such as text, integer, decimal, and date. You can also use "Model Auto-Correction" to get suggestions, then review and save them. Numbers and content with leading zeros are protected as text to reduce the risk of being incorrectly recognized as numeric values. Before batch import, the tool checks the file data against the target table type. If issues are found, it provides details about the file, rows, columns, and the specific problem, making it easy to correct the errors and retry.
