Classify text with Jev
textcat_jev · Built-in action recipeLabel texts with TypeSafe's Jev and keep the answers it's confident about. Exclude the output dataset from a text classification task to leave the rest to people.
If you've connected Ellf to your coding assistant, it can set up the action for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up an action
› Set up an Ellf action using the Classify text with Jev recipe (textcat_jev) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Classify text with Jev recipe under Data.
- Fill in the form – you'll need to provide Input data asset, Labels, Output dataset and TypeSafe API key. Everything else has sensible defaults.
- Create the action. It starts on your cluster straight away.
API key needed
This recipe needs your TypeSafe API key. Add it as a secret on your cluster and select it in the form.
Create the action with ellf actions create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf actions create textcat_jev --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--input | str | Input data asset: Upload data to your cluster and it will be available here. | |
--label | List[str] | List: Type the labels, or pick a Labels asset with optional definitions.One option for Labels | None |
--label-scheme | str | Asset: A label scheme as a JSON file, with optional definitions for each label.One option for Labels | None |
--labels-exclusive | bool | Mutually exclusive labels: Every example has exactly one correct label. | False |
--instructions | str | Instructions: Context for Jev about what the labels are for, e.g. 'Route the support ticket to the team that should handle it'. Without it, Jev only gets the label names and their definitions. | "" |
--output | str | Output dataset: Dataset to save Jev's confident answers to. Exclude it from a text classification task over the same input to annotate the rest. | |
--api-key | str | TypeSafe API key: Your TypeSafe API key, stored as an Ellf secret. The texts are sent to TypeSafe's API. | |
--model | str | Jev model name | "jev-latest" |
--min-confidence | float | Minimum confidence: Only keep answers Jev is at least this confident about. With several labels that aren't exclusive, every label has to reach it. | 0.9 |
--concurrency | int | Concurrent requests | 8 |
--project-id | str | Project ID to add action to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the action on, as configured on your cluster | None |