Skip to content

Jev directory

Dbt Jev

A dbt package that evaluates SQL values with Jev through TypeSafe's hosted API or OpenRouter: macros expose Choice as a nullable label, Noul as a match probability and Score as a numeric rating, on DuckDB and ClickHouse.
Stars
3
Language
Python
License
MIT
Reading time
2 min
Published by
Community
Author
smithclay
Last verified
Oct 2026

Highlights

  • Public macros classify, match_probability, score and decisions work unchanged on DuckDB and ClickHouse.
  • match_probability sends two text-cast expressions as structured left and right state and returns a number from 0 to 1.
  • score uses ordered levels and returns an expected value from 0 through levels minus 1, so a three-level rubric can produce fractional values such as 1.75.
  • decisions batches several typed questions about the same input into one Jev request; decision_label and decision_value pull each answer back out.
  • Macros only generate SQL, so inference starts when the database executes it; tested with dbt Core 1.11.12, DuckDB 1.5.5 and ClickHouse Server 26.8.9.10.

Quickstart

sql
select
    ticket_id,
    {{ dbt_jev.score(
        'ticket_context',
        levels=['No urgency', 'Needs attention', 'Urgent'],
        instructions='Rate the urgency of this support request'
    ) }} as urgency_score
from {{ ref('stg_support__tickets') }}

Watch out

Grounded in the truncated repository README and GitHub metadata reviewed on 2026-10-15; the README was cut off part-way through the tested-support table, and no pricing beyond the linked provider pages is documented. All version numbers come from the project's own compatibility table.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

Hacker News: A MySQL plugin that filters rows by asking Jev whether a column matches a sentence.

maayanlevy-hn2 pointsA MySQL plugin that filters rows by meaning (built on TypeSafe Jev)Read the thread on Hacker News

X: jev(): Postgres WHERE clauses in plain language

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai