GuidesClassificationConfiguring a Classifier

Classifiers answer discrete questions such as “Is this an invoice?” or “Which department owns this?”.

Label setup

  1. Visit Processors → New → Classification in the Studio.
  2. Define labels (e.g., invoice, receipt, contract).
  3. Upload training examples for each label; aim for at least 20 samples per class.

Feature options

  • Layout-aware mode improves performance on complex PDFs.
  • Few-shot boost lets you provide short textual descriptions for each label.
  • Confidence guardrails let you trigger a fallback when predictions fall below your threshold.

Deploy via API

curl -X POST https://api.algorythmos.fr/processors \
 -H "x-api-key: $ALG_KEY" \
 -H "Content-Type: application/json" \
 -d '{
  "type":"classifier",
  "name":"document-router",
  "labels":["invoice","receipt","contract"],
  "confidence_threshold":0.75
}'

Once deployed, you can plug the classifier into workflows to route documents to specialized extractors automatically.