Sort into a category
classifyaiveraltetReplaced by an AI agent step. Tell the agent the categories, and give it the fields category, confidence and reason.
Auf einen Blick
| Eigenschaft | Wert |
|---|---|
| Schrittname | classify |
| Ressource | ClusterStep (lumen.ai/v1alpha1) |
| Palettengruppe, Kategorie | ai, ai |
| Credits | 1.5 Credits bei jedem Erfolg |
| Externe Wirkung | nein |
| Die Installation muss bereitstellen | nichts |
Eingaben
| Eigenschaft | Wert |
|---|---|
| Braucht | nichts |
| Liefert | fields |
| Arbeitet auf | item 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.
| Ausgabe | Typ |
|---|---|
category | string |
confidence | number |
reason | string |
Einstellungen
Wird unter config: im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie {nodeId.field} enthalten.
| Einstellung | Typ | Standardwert | Beschreibung |
|---|---|---|---|
categorieserforderlich | list of object | - | CategoriesminItems 2; maxItems 30 |
categories[].nameerforderlich | string | - | NameminLength 1; maxLength 60 |
categories[].description | string | - | Description says what belongs here, to the model.maxLength 300 |
allowOther | boolean | true | AllowOther lets the answer be "other" when nothing fits. On unless set to false; off, the document is put in the closest category. |
files | object | - | Files is how the step reads the document's files and how much of them. |
files.mode | string | "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.maxFiles | integer | 10 | MaxFiles is the most files one document may bring; the rest are skipped. Unset is 10.minimum 1; maximum 100 |
files.maxPages | integer | 100 | MaxPages 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.maxBytes | integer | 20971520 | MaxBytes 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.
- id: classify
stepRef: {name: classify}