Skip to content

typevet

Kind: reference, the landing page. Choose a path by what you need to do.

typevet is a Python library that asks a model typed questions and returns typed answers. The three question types are Noul (yes or no), Choice (one label) and Score (one rubric level). typevet computes each answer from the model's next-token probabilities, read before sampling. typevet also returns JSON objects that pass a JSON Schema you supply, or it raises an error. The receipts cover Gemma 4 31B on llama.cpp for local work and on vLLM for hosting.

typevet is pre-1.0. Install it from PyPI with pip install typevet. The full index lists every page and its kind.

Start with the offline tutorial

Choose a path

Contribute