Skip to main content

ruling: typed decisions, no text

ruling: typed decisions, not generated text, from open models

Documentation: docs/


ruling turns any open chat model into a decision engine like TypeSafe's Jev. You send a state (text, JSON or images) and typed questions; you get back a probability for every option you declared, or the edges of what a box question asked it to find in an image. Nothing else is generated, so there is nothing to parse and the model cannot invent an answer you did not list. It runs on your own machine, serves TypeSafe's API so their client works against it unchanged, images and all, and learns from the outcomes of the decisions it serves.

On the 256 public judgments that carry Jev's own answers, a 19 GB open model with no training gets 231 right to Jev's 238, not a significant difference (exact McNemar, p = 0.21); the results also say where Jev is ahead. Not affiliated with TypeSafe AI.

Documentation

The usual starting points: Getting started, Choosing models, Fine-tuning, and the Reference for every setting, command and API route. The index is at docs/README.md.

Installation

You need an Apple Silicon Mac and Python 3.12+.

pip install ruling            # or: uv tool install ruling; add [vision] to ask about images
ruling serve                  # downloads a 2.3 GB model on first start, then serves http://127.0.0.1:8010

Open http://127.0.0.1:8010/ for the playground. To work on ruling itself, clone the repository and uv sync; see Development. On NVIDIA, see vLLM. Before relying on an answer, read the limits.

The playground

ask takes a question in plain words. The model first reads it as typed questions about the input (is it answerable, a yes or no, a pick, a how much, a how likely?), writes the options a pick needs, judges them, and checks its own answer; every reading is shown under the answer.

The ask tab: a question in plain words, read as a pick, answered Python with p = 1.00 and checked

decide is the API itself: a state, typed questions as JSON, a model picker, and each answer's probabilities as bars.

The decide tab: a state, three typed questions, and each answer's probabilities as bars

Reading more

  • Results and the full measurements, with the command behind every number.
  • How it works: one prefix, many suffixes, and reading logits instead of sampling.
  • Design notes and Background: what Jev is, why ruling is built the way it is, the other open recreations, and the papers behind the calibration.

License

MIT. ruling is an independent project with no connection to TypeSafe AI; "Jev" and "System One" are their names, used here to say what this reproduces. The authored144 and perturbations108 datasets and the WANLI row selection are converted from TheoLeeCJ/openjev under MIT, with their copyright notice in THIRD_PARTY.md. WANLI is CC-BY-4.0 and SST-5 keeps its own terms; neither is committed here. Model weights keep their own licenses.

Metadata

Release files for ruling 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ruling 0.4.0
File Size Uploaded Provenance Actions
ruling-0.4.0.tar.gz 122.7 kB Without provenance Details for ruling-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ruling 0.4.0
File Interpreter ABI Platform Actions
ruling-0.4.0-py3-none-any.whl Python 3 none any Details for ruling-0.4.0-py3-none-any.whl

Total release size: 265.1 kB

Release files / ruling-0.4.0.tar.gz

Download URL ruling-0.4.0.tar.gz
Size 122.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fbef787dea13e42ae7df712c86056bfeacc1e25b12938de591ec840a1ae71e97
BLAKE2b-256 checksum
How to use checksums
8a3fb42cfc9e48f72b94d536ac315725483f94b2e7ec3e89a0467d69a840bd70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ruling-0.4.0-py3-none-any.whl

Download URL ruling-0.4.0-py3-none-any.whl
Size 142.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6b47e2a584382bf75b5d0a4088a1cd67e20503ef54c46f27e43becdb473a199
BLAKE2b-256 checksum
How to use checksums
af85a237c1951d61faaa2bf51aa5edc62b155bf51f7948123f17a36a8ff78b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ruling 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page