דלג לתוכן הראשי

למיין לקטגוריה

שלבclassifyaiיוצא משימוש

הוחלף בשלב סוכן AI. תנו לסוכן את הקטגוריות, ואת השדות category, confidence ו-reason.

במבט אחד​

מאפייןערך
שם השלבclassify
משאבClusterStep (lumen.ai/v1alpha1)
קבוצה וקטגוריהai, ai
קרדיטים1.5 קרדיטים בכל פעם שהוא מצליח
השפעה חיצוניתלא
ההתקנה צריכה לספקכלום

קלט​

מאפייןערך
צריךכלום
מפיקfields
עובד עלitem מסמך אחד בכל פעם

״צריך״ ו״מפיק״ הם סוגי נתונים (file, text, fields, email). העורך מציע שלב רק במקום שבו מה שהוא צריך כבר נמצא במסלול. ראו מסמכים ונתונים.

פלט​

צומת מאוחר יותר מפנה לפלט כ-{nodeId.field} בטקסט, או כ-nodeId.field בתנאי.

פלטסוג
categorystring
confidencenumber
reasonstring

הגדרות​

מגדירים תחת config: בצומת של התהליך. הגדרות טקסט יכולות להכיל מצייני מקום כמו {nodeId.field}.

הגדרהסוגברירת מחדלתיאור
categoriesחובהlist of object-CategoriesminItems 2; maxItems 30
categories[].nameחובהstring-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

ה-JSON Schema המלא של ההגדרות: classify.schema.json.

שימוש בתהליך​

צומת שמריץ את classify נכנס תחת spec.nodes של Flow. תנו לו כל מזהה, ורשמו ב-next את מזהי הצמתים הבאים.

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