Jayesh Singh (@eigenstatevalue) profile picture
Joined September 2026
Photo by Jayesh Singh (@eigenstatevalue)
Jayesh Singh retweeted
Introducing *Switch*: a *harness framework* for *decision models* like Jev I looked for this the other day and was surprised to not find anything like it You obviously cannot use a decision model like an LLM in a coding agent harness like @pidotdev, because Jev cannot generate tool calls But what if there was a framework that "generated the tool calls" for it programmatically, and Jev only had to pick out of that finite set of choices That is what switch does. You pick a "domain" to implement the decision model in, and it provides a core API to define your state, and the functions that will derive decision model questions out of that state. Chess is a domain, as well as being a rubric judge for evals It basically standardizes what I imagine a lot of people are already vibe-coding, to an abstract interface: calling a decision-model API through multiple steps, i.e. an agent loop over finite choices Because of the finiteness of the output of a decision model, you cannot have a general pure decision model harness. Instead, you need to implement specific ones that generate the choices programmatically (or have an LLM generate the choices, but I find the former more interesting) A primary use case I have for this is use as a judge in an eval. For example, At the end of a task run that involves a bunch of documents, most people currently follow this approach: extract text out of PDF/docx/md files, and dump them right into the context But what if the visual formatting of the output is a judging criterion? Then you have to dump an image of every page in the input state. But what if you have 200 pages, and your question does not need looking at all of them? What if Jev could navigate through the haystack and find the info it needs? I have noticed that Jev is not so good at chess nor being a Decision-Model-as-a-Judge. It sucks at chess, and it does not perform well enough to replace GPT 6.1 Sol as a judge in the domain I am working for But switch is not only for Jev! It is for any decision model including the ones supported by the pi-ai package So once you can generate enough data with a better model, you should be able to pick an open source one and fine-tune it on your use case to perform better! And the model should be trained in a harness like switch's to be especially performant and cost-efficient I wanted to get this out because I find the idea very exciting, at least for benchmarking. Jev is currently not there, but decision models obviously will be there at some point, and we can take them there! There are also a lot of potential gains from picking a specific domain, and creating a looping agent that does a job for 100x cheaper! Let me know if you have any ideas, I am quite keen to try this on new domains! Repo: github.com/osolmaz/switch
70
142
19
2,035
108,873
Jayesh Singh retweeted
A prompt-injection guard is one question, not another model. from vegaml.guard import GUARD, score a = v.decide(req, {"guard": GUARD})["answers"]["guard"] if a["choice"] == "block": refuse() pip install vegaml. Runs on CPU. No network, no per-request bill, nothing leaves your box. Speed per request: vega-U fitted, local: 342 ms hosted Jev 1.14: 775 ms p50, 1430 ms p99 Accuracy across 4 public corpora: vega-U fitted leads 3 of 4 (90.0 / 98.1 / 76.3). On real traffic at a 1.79% attack rate, Jev edges it. Numbers, data and code: embedding.in/docs/prompt-inj…
6
7
67
2,140
Jayesh Singh retweeted
vega vs jev vs laya. Btw, Vega can run on a CPU, your smartphone, browser on the edge. With a speed of 75 ms in apple M5 16 GB
26
61
5
797
26,805