TypeSafe Jev and other System One decision models

AI-generated summary

sam announced built-in support for decision models in Discourse AI, a feature originally championed by TypeSafe.ai and now implemented by providers like CloudFlare and OpenAI. These models classify text and images by answering specific questions quickly, accurately, and cheaply, offering a superior alternative to language models for such tasks. The feature is currently accessible via a new admin tab when Discourse Workflows are enabled, introducing a “Classify” node to workflows for tasks like automatic moderation, tagging, and team notifications.

satonotdead highlighted its potential for response triage agents, suggesting a “Senior Helper” architecture where a decision model acts as a gate to classify inputs and delegate to appropriate subagents before the main LLM engages. sam expressed interest in exploring this routing concept. satonotdead detailed a proposed workflow where a decision model selects among subagents (e.g., for text improvement, link handling, or chart analysis) based on confidence thresholds, with a fallback to the LLM for ambiguous cases. They also suggested using decision models as guards to enforce fixed replies for prohibited topics, reducing prompt drift.

For implementation, sam noted that people hosted by CDCK have pre-configured access, while self-hosters can try the feature via vLLM. putty shared a success story using decision models to reliably flag and block annoying auto-response tickets from service emails, a task that previously caused false positives with LLM-based workflows. They also reported a minor UI bug where the integrated AI tool could not see the hosted decision model ID; Falco acknowledged this and linked to a GitHub fix.

Finally, Frully requested adding cost tracking for decision model requests to account for input token usage, despite the minimal cost per request. hhf.technology praised the feature’s utility in managing large-scale app and user data.

I am very happy to announce we now have built-in support for decision models. :confetti_ball:

Decision models were championed and first developed by TypeSafe.ai and since then have been implemented by numerous providers including CloudFlare (clef), Open AI (decisions api) and many more.

They allow you to classify text and images by answering arbitrary questions about the inputs quickly, accurately and cheaply.

Previously we were able to lean on language models for this behavior but cost/speed and accuracy were not as good.

We added direct support into Discourse AI:


The new tab (for now) is only enabled if you have Discourse Workflows enabled (given it is the only consumer)

Once you have a decision model configured you get access to a new “Classify” model in workflows.


The new intelligence can be used for a very large amount of workflows given it allows you to classify text (and images) using your own designed classifier.

  • Automatic moderation - get notified when discussions get heated
  • Notify particular team members when particular topics are discussed
  • Automatic tagging and categorization
  • And much more

Enjoy, and please share interesting workflows you come up with.

28 Likes

I find this great for response triage agents; I’m already in my first tests to see how it goes. I understand that these new models for decision-making are very precise and fast, and I’m glad we can have them in Discourse.

I wonder if there are plans and/or if it is technically possible to incorporate them into common agents as well, to develop ‘Senior Helpers’ that first classify before delegating. Or does that not make sense at all?

It’s likely that I haven’t yet fully understood their real best use case, and maybe I’m asking something out of place.

2 Likes

I think there are a large number of uses here, using them as a gate that finds the right agent or subagent to answer is certainly something I want to explore

How do you see it working?

Here’s how I picture it, using our setup as the example. Our main agent has five subagents:

Subagent Picked when
publicator a member shares a text to improve before posting
links loose links to draft into a post
web things that change outside the forum
base curated archive: older discussions, documents, books
at a chart a member shares, reviewed against our public method

Today the parent LLM reads the subagent descriptions and picks one with spawn_agent. The gate would take that decision from it:

  1. A gate setting on the agent, pointing to a decision model.
  2. The choices are the subagent descriptions that already exist, plus “answer yourself”. Nothing new for admins to write.
  3. Only the subagents the current user can access are offered.
  4. Above a confidence threshold, the subagent runs directly. Below it, the result reaches the parent LLM as a hint and the LLM decides, as it does now.
  5. Since decision models classify images, “member shared a chart” comes from the image itself.

The same gate, as a yes/no question, would also work as a guard before the LLM runs.

We’re an education community and we don’t give signals, price targets or investment advice, so “is this asking for a trading signal?” → fixed reply. Today that rule is a line in every prompt, and models drift from it under pressure.

If you get to it, we’d be glad to try an early version on our forum.

People hosted by CDCK get pre-configured access to a decision model.

Self hosters looking to play with this can head to: https://app.vllm-sr.ai/ , mint a key and try it for free.

5 Likes

This is awesome! This seems to have solved a big pain point for us: sometimes users sign up with a service email address, which, when it receives an email, auto-responds, creates a ticket, etc.

This often resulted in random “your ticket has been created” posts popping up. These weren’t considered true “autoresponses” that would be blocked otherwise. I was tolerating the private message versions (gradually adding patterns to the email ignore by title settings), but the public ones were frustrating.

I tried an LLM workflow to detect these, but it had too many false positives. After doing several tests, this workflow has reliably caught and flagged them all :rocket:

Super slight bug with this experience: I used the integrated AI tool to build this, but it couldn’t see the CDCK Hosted Decisions model, and there’s no way to see the ID # from the Models page (there’s no edit button to dig into it). I knowingly told it the wrong ID #, knowing I would have to update it manually.

3 Likes

This is a great report thanks!

3 Likes

Feature request: Add the cost field so that typesafe requests are counted alongside the other llm costs.

Granted, the costs will be miniscule compared to an LLM, they do have an input token count, and my provider does charge by input token count so it should be a trivial fix.

($0.04/M input) * ~1000 tokens per request = 4/1000 of a cent.

1 Like

this is just amazing . thank you soo much for this site.

managing almost 3000 apps and 6000 users.