Skip to content

Article

Jev on BigQuery via Cloud Run

A Google Cloud Community walkthrough by developer advocate Jeff Nelson that calls Jev from BigQuery through a private Cloud Run adapter, turning support-ticket text into owning-team, urgency, and blocking columns for 30 fictional tickets.
Format
Article
Reading time
2 min
Published by
Community
Author
Jeff Nelson
Last verified
Oct 2026

Highlights

  • Cloud Run hosts a Python adapter that translates BigQuery's batched calls into Jev questions and returns one JSON object per ticket in an ordered replies array.
  • The API key lives in Secret Manager; BigQuery remote functions reach the adapter through a Cloud Resource connection with max_batching_rows set to 5.
  • Choice picks the owning team; Noul returns urgency and blocking probabilities across the 30 fictional tickets in the sample dataset.
  • A 0.80 threshold on urgent_probability and blocked_probability surfaces four of 30 tickets; the Nightly import failed ticket is urgent but not blocking.
  • Saving scores to a table lets queue rules change without calling Jev again; the author notes MotherDuck introduced Jev in SQL the day before.

Watch out

The sample dataset is 30 fictional tickets, thresholds are illustrative, and the post publishes no accuracy, latency, or cost measurements. The companion repository (github.com/jeffonelson/jev-bigquery-cloudrun) carries the setup guide, SQL scripts, and a two-ticket example, but the page states no licence for it, and Jev calls need a TypeSafe key.

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