For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog in
GuidesAPI ReferenceChangelogModel Versioning
GuidesAPI ReferenceChangelogModel Versioning
    • Getting Started
        • Configuring a Classifier
        • Output Type
LogoLogo
Book a demoLog in
On this page
  • Classification Processor Configuration
  • Example API Usecases
  • Webhooks
  • Configurable Fields
  • Classifier Configuration Example
Core Document ProcessingClassification

Configuring a Classifier

Was this page helpful?
Previous

Classifier output types

Next
Built with

Classification Processor Configuration

“Classifiers” categorize documents into predefined types. These can be configured via either the UI or the API.

Example API Usecases

  • Create a classifier with a given config - Set up a new classification processor with your configuration
  • Update a classifier with a given config - Modify an existing classifier’s configuration
  • Run an existing classifier with a given config - Ephemerally execute an existing classifier with a custom configuration that overrides the classifiers’s existing settings

Webhooks

You can consume classification outputs via webhooks, track updates to your classifier, and more. See Webhook Events for details.

Configurable Fields

You can view full details of the ClassificationConfig in our API reference.

When working with the ClassificationConfig, you can configure several key aspects, such as:

  • Prompts - Custom instructions that guide how the classifier categorizes documents
  • Classifications - Define the categories and rules for document classification
  • Classifier version - Specify which version of the classification model to use
  • Advanced options - Configure context limits, multimodal processing, page ranges, and other specialized settings

Classifier Configuration Example

1const classificationConfig = {
2 type: "CLASSIFY",
3 classifications: [
4 {
5 id: "invoice",
6 type: "INVOICE",
7 description: "Standard invoice document ...",
8 },
9 {
10 id: "bill_of_lading",
11 type: "BILL_OF_LADING",
12 description: "Bill of Lading document ...",
13 },
14 ],
15 classificationRules: "- If ...", // Optional custom rules
16};