classify
Assign one or more labels from your provided list to text or a file, enabling private, offline triage of tickets, emails, comments, and log lines.
Instructions
Pick the best label for a text from a list you give, with the on-device model for Apple Foundation Models (free, private, offline). Good for triage: sorting tickets, emails, comments or log lines into categories. The answer is always one of your labels (or several, with multi). Input up to about 3,500 words, as text or as path to a text file; 2 to 50 labels. Subtle or ambiguous text can be mislabelled, so spot-check. Not for code, maths or reasoning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to a UTF-8 text file to classify (as one text) instead of `text`. | |
| text | No | The text to classify. Up to about 3,500 words. Give this or `path`. | |
| multi | No | Allow several labels instead of exactly one. Defaults to false. | |
| labels | Yes | The labels to choose from: 2 to 50 distinct, non-empty strings. | |
| instructions | No | Optional guidance, for example what each label means. |