shipwithjev

Catalog / Tools & apps

0369GitHub

kunobi-jev

Rust client, published on crates.io.

kunobi-ninja/kunobi-jevREADME ↗
# kunobi-decision

[](https://crates.io/crates/kunobi-decision)
[](https://docs.rs/kunobi-decision)
[](https://github.com/kunobi-ninja/kunobi-decision/actions/workflows/ci.yml)
[](LICENSE)
[](Cargo.toml)

Rust client for typed decision models: TypeSafe Jev, Cloudflare Clef, Liquid d1,
Vercel AI Gateway and OpenRouter. Send state and typed questions, and get answers your
code can act on: a label, a score or a probability, each with the numbers behind it.

The client supports three question types:

| Builder | Asks | Answer |
| --- | --- | --- |
| `noul` | a yes/no question | `noul`: probability of yes |
| `choice` / `choice_labels` | which label fits | `choice`, `confidence`, `probabilities` per label |
| `score` | where it falls on ordered levels | expected `score`, `confidence`, `legend`, `probabilities` |

A Choice takes up to 255 options and a Score between 2 and 10 levels; the client
refuses more before sending. `ScoreAnswer::normalized()` puts a score on 0 to 1 so
rubrics of different lengths can be combined, and `ranked()` orders a choice's
probabilities most likely first.

All questions in one call are answered against the same state in a single request,
and that is the cheap way to use it: the state is charged once however many questions
ride along. Measured against the live API, a 24k-token state with one question costs
24,288 input tokens and the same state with 200 questions costs 26,676, while latency
stays flat. Asking one question per call re-sends the state every time.

This is an unofficial client, maintained by Kunobi. It is not affiliated with TypeSafe.

## Install

```toml
kunobi-decision = "0.3"
```

Calls run on Tokio.

| Feature | Default | What it does |
| --- | --- | --- |
| `rustls` | yes | TLS through rustls |
| `blocking` | no | `blocking::Cli

Also filed under Tools & apps

  1. 0616

    Jevstiller: distill Jev calls into a local model

    A self-hosted proxy that trains a local model on Jev's answers. It served 72% of Banking77 locally at 15 ms, with a 2% audit and a bound on disagreement.

    tomerglick57 · Tools & apps · 15 ms local

  2. 0611

    Scruple: code checks for what linters miss

    Semantic-aware linting with System One models: rules you can state in a sentence, checked against your code by Jev.

    @nalexpeae · Tools & apps

  3. 0606

    Algolia-style Postgres search with a Jev reranker

    Typo tolerance, typeahead, barcodes and facet counts in plain Postgres SQL, plus an optional Jev step that asks one question per top-10 result.

    @alex_forman1 · Tools & apps

  4. 0604

    Virtual Closet: outfits from closet videos

    built a virtual closet & outfit generator from raw closet videos. classification + semantic search thanks to jev 🥰. clueless closet dreams finally coming to life

    @maitreemervana · Tools & apps