AI detect and suggest tags
Settings, outputs and examples for the AI detect and AI suggest tags steps.
Both steps can ask a decision model or a language model, chosen with Method; see Decision models and language models. Like the other AI steps, they need an AI connection, some Text, an Image, or both, and open the larger editor with Configure step. Model checks, Generation settings, Server limits and Errors work as they do for classify and extract.
AI detect
Answers a yes-or-no question about an image or text, such as Is this a receipt? or Does this screenshot show a password?, and continues on one of three exits: Yes, No or Unsure. Connect a step to each exit you need, as with a Condition. An exit with nothing connected ends that path.
Load content → AI detect (Is this a receipt?) ─Yes────→ Move to Receipts
├No─────→ (nothing)
└Unsure─→ Add tags: needs-review
How the exit is chosen:
- Decision model: the model gives the probability of yes. The more likely answer wins, and its probability is the confidence: 0.92 is yes with confidence 0.92, and 0.1 is no with confidence 0.9. When the confidence is below Minimum confidence, the step takes Unsure; 0.6 takes Unsure with the default of 0.7.
- Language model: the model may answer unsure itself when the content doesn't let it tell, and it's told not to guess. A yes or no whose stated confidence is below Minimum confidence also takes Unsure. A language model's confidence is its own estimate, not a measured probability.
The run's log says which answer was more likely when the step took Unsure.
Produces: answer (yes, no or unsure, matching the exit), confidence (from 0.5 to 1), probability (the probability of yes, from a decision model; empty for language models), reason (one sentence from a language model; empty for decision models) and ai.
{ "answer": "yes", "confidence": 0.92, "probability": 0.92, "reason": null }
In a test run that doesn't allow sending content to outside services, the step sends nothing and takes Unsure with placeholder outputs.
AI suggest tags
Picks fitting tags from your tags for an image or text, and can suggest new ones when none fit. It only suggests: add an Add tags step to tag the file.
Load content → AI suggest tags → Add tags (Tags: steps.suggest.tags, Tag names: steps.suggest.newTags)
In Add tags, bind Tags to the step's tags output and, to create suggested tags, Tag names to its newTags output. Choose the value with the binding button beside each setting.
settings_invalid without them.matched is false. Suggest new tags: the model proposes names in newTags, only when none of the offered tags fit.The names of the tags offered are sent to the connection with the content.
With a language model, Tessra matches the names it answers to your tags, ignoring case and a leading #, and leaves out any name that isn't one of them; the run's log lists what it left out. Suggested names are cleaned the way Add tags cleans names: spaces collapsed, a leading # removed, and names over 50 characters or with commas dropped. A suggested name that matches an existing tag is used as that tag instead. When there are no tags to offer and the step doesn't suggest new ones, it finishes without asking the model.
Produces: tags (the chosen tags, most fitting first, for Add tags' Tags), tagNames (their names, for messages and templates), newTags (suggested names, for Add tags' Tag names), matched (whether any existing tag fit), probabilities (each offered tag's probability by name, from a decision model; empty for language models) and ai.
{ "tags": [{ "id": "01a2…" }], "tagNames": ["Receipts"], "newTags": [], "matched": true, "probabilities": null }
The step never creates tags itself, so a test run shows what would be added without changing your tag list.