Axelered

Classify

AI taxonomy classification to categorize documents automatically.

A Classification picks the category of a document out of a list you define. It reads the document content and maps it to the most relevant category, with a motivation, enabling automated sorting and routing of incoming files.

Loading diagram…
  • Your Taxonomy: each category has a name and a description that tells the model when to pick it.
  • Semantic Reasoning: the model understands context and intent, classifying files even without specific keyword matches.
  • No Forced Choice: by default the model may return no category when the file fits none.

🏗️ Configuration

A Classification is an Operation: it parses the Document, then classifies it.

ParameterTypeDefaultDescription
categoriesarrayrequiredAt least one { "name", "description" }.
allowEmptybooleantrueWhether the model may return no category.
tierstringfastfast or accurate. See Operation Tiers.
instructionsstringnoneExtra instructions for the model.
parsingobject{ "tier": "fast" }How the Document is parsed: tier and pages. See Parse.
perimeterstringexternalWhere your data may go. See Perimeters.

The model reads the first 5,000 characters of the parsed Document; when it is longer, the Output reports truncated: true.


🛠️ Classify a Document

For every field and parameter, see the Classifications reference.

Submit a Classification

curl -X POST "https://api.axelered.com/v1/classifications?wait=30" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@/path/to/legal_form.pdf" \
  -F 'config={
    "categories": [
      { "name": "invoice", "description": "A bill for goods or services" },
      { "name": "contract", "description": "An agreement between parties" }
    ],
    "allowEmpty": false
  }'

Once the Classification is done, the category is in its output:

{
  "status": "done",
  "output": {
    "value": {
      "category": { "name": "contract", "description": "An agreement between parties" },
      "motivation": "..."
    },
    "truncated": false
  }
}

List, Read & Delete

On this page