tria eval
tria eval tells you how often Tria would get it right with your rules. It takes a sample from an archive you’ve already sorted, asks Tria to sort it again and compares what it proposes with where each document really is.
How it works
- Picks a random sample of the documents already inside some folder of the archive, leaving out those in folders Tria doesn’t touch. 200 by default.
- Copies each one to a temporary folder under a random name, so the name gives nothing away.
- Reads them with the archive’s
TRIA.mdandPERFIL.mdand with the folder list, which leaves out the sample documents. - Compares the folder and the name it proposes with the real ones.
- Deletes the copies when it’s done.
It never touches the originals. It doesn’t use the cache: every evaluation reads the sample again.
tria eval ~/Documents/Business --sample 50tria eval --synthetic# with made-up documentsThe folder needs its own TRIA.md, or you can give it a different one with --rules. With --synthetic you don’t need any documents of your own: it uses a fictitious company’s archive that comes with the CLI.
The result
- Folder accuracy: in how many documents it proposes the right folder.
- Exact and similar name: how many names match exactly and how many come close.
- Pending and unreadable: what Tria would leave in the inbox and what it can’t read.
- By confidence: how many documents come out with high, medium and low confidence, and how accurate each one is.
It ends with the tokens and the cost. The high-confidence line is the one that tells you whether automatic mode, which only files high-confidence documents, is right for you.
Options
| Option | What it does |
|---|---|
--synthetic | Uses the made-up archive that comes with the CLI. |
--rules | A rules file instead of the folder’s TRIA.md. |
--sample | Sample size. 200 by default. |
--seed | The sample seed: same seed, same sample. 42 by default. |
--out | Saves the report as JSON to a file. |
--baseline | Compares with a saved report and exits with 1 if accuracy drops. |
--json | Writes the report as JSON. |
-y | Doesn’t ask before spending. |
So it doesn’t get worse
Save a baseline report and compare against it every time you change the rules or the model:
tria eval ~/Documents/Business --sample 50 --out baseline.jsontria eval ~/Documents/Business --sample 50 --baseline baseline.json# exits with 1 if it dropsWith the same seed, the same size and the same archive, the sample is the same, so the comparison is fair. If the evaluation is cut short, for example because your account runs out of credit, the report only counts what was finished and isn’t compared with the baseline.