Zum Hauptinhalt springen

Sort into a category

Schrittclassifyaiveraltet

Replaced by an AI agent step. Tell the agent the categories, and give it the fields category, confidence and reason.

Auf einen Blick​

EigenschaftWert
Schrittnameclassify
RessourceClusterStep (lumen.ai/v1alpha1)
Palettengruppe, Kategorieai, ai
Credits1.5 Credits bei jedem Erfolg
Externe Wirkungnein
Die Installation muss bereitstellennichts

Eingaben​

EigenschaftWert
Brauchtnichts
Liefertfields
Arbeitet aufitem einem Dokument nach dem anderen

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe Dokumente und Daten.

Ausgaben​

Ein späterer Knoten verweist auf eine Ausgabe als {nodeId.field} in einem Text oder als nodeId.field in einer Bedingung.

AusgabeTyp
categorystring
confidencenumber
reasonstring

Einstellungen​

Wird unter config: im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie {nodeId.field} enthalten.

EinstellungTypStandardwertBeschreibung
categorieserforderlichlist of object-CategoriesminItems 2; maxItems 30
categories[].nameerforderlichstring-NameminLength 1; maxLength 60
categories[].descriptionstring-Description says what belongs here, to the model.maxLength 300
allowOtherbooleantrueAllowOther lets the answer be "other" when nothing fits. On unless set to false; off, the document is put in the closest category.
filesobject-Files is how the step reads the document's files and how much of them.
files.modestring"attach"Mode is attach (the model reads each file whole when it can, its text otherwise), text (only the text read out of each file) or none (no file at all). Unset is attach. ifNoText attaches them only when the document has no text, and sends none otherwise.one of attach, text, none, ifNoText
files.maxFilesinteger10MaxFiles is the most files one document may bring; the rest are skipped. Unset is 10.minimum 1; maximum 100
files.maxPagesinteger100MaxPages is the most PDF pages across all files together; a PDF that crosses it is read up to the pages left. Unset is 100.minimum 1; maximum 1000
files.maxBytesinteger20971520MaxBytes is the most bytes, all files together. Unset is 20 MB.minimum 1; maximum 104857600

Das vollständige JSON Schema dieser Einstellungen: classify.schema.json.

Im Flow verwenden​

Ein Knoten, der classify ausführt, steht unter spec.nodes eines Flow. Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

flow.yaml (spec.nodes)
- id: classify
stepRef: {name: classify}