gut

v0.8.2
io.github.Kungie/gut Checked 4 days ago Published 1 month ago

Judgment calls on small, cheap models: is this spam, which team, how urgent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

likely

Judge whether a claim is true of a text. Answers yes or no with the model's probability that the claim is true -- or unsure, when ask_human is set.

ParameterTypeDescription
question *stringA short claim about the text, e.g. "asks for a refund". Not an open question.
subject *stringThe text to judge: an email, a comment, a diff.
ask_humanbooleanAllow the outcome `unsure` when the model cannot tell. Off by default.
leanWhich way to err when unsure is not allowed.
stakesHow sure the model must be before an answer counts. Needs ask_human.

classify

Pick the option that fits a text best: a team, a topic, a language, an intent. Answers with the chosen label, every option's probability and a confidence.

ParameterTypeDescription
options *The categories: {label: description}, or a list of labels. Include a catch-all such as "other", or every text is forced into one of them.
subject *stringThe text to judge: an email, a comment, a diff.
ask_humanbooleanAllow the outcome `unsure` when the model cannot tell. Off by default.
questionWhat to decide, if the options do not say it.
stakesHow sure the model must be before an answer counts. Needs ask_human.

rate

Rate a text on an ordered scale such as urgency or severity. Answers with a score, which can fall between levels, the nearest level and a confidence.

ParameterTypeDescription
levels *arrayBetween 2 and 10 level descriptions, in order; the first is level 0.
subject *stringThe text to judge: an email, a comment, a diff.
ask_humanbooleanAllow the outcome `unsure` when the model cannot tell. Off by default.
questionWhat to rate, if the levels do not say it.
stakesHow sure the model must be before an answer counts. Needs ask_human.

each

Ask the same question about many texts at once: likely with just a question, classify with options, rate with levels. Far faster than one call per text.

ParameterTypeDescription
subjects *arrayThe texts to judge, all with the same question.
ask_humanbooleanAllow the outcome `unsure` when the model cannot tell. Off by default.
levelsA scale, as for rate.
optionsCategories, as for classify.
questionA claim, as for likely. Alone, it asks likely; with options or levels, it says what to decide.
stakesHow sure the model must be before an answer counts. Needs ask_human.