Skip to content

Jev directory

Pg TypeSafe

A pre-alpha PostgreSQL extension for categorical work in SQL: Noul, Choice, and Score functions plus batched variants that classified 38 strings in two requests.
Stars
88
Language
C
License
MIT
Reading time
3 min
Published by
Community
Author
giuliosmall
Last verified
Sep 2026

giuliosmall/pg_typesafe

User repository on GitHub

View on GitHub

Pre-alpha PostgreSQL extension for TypeSafe AI (Jev) categorical classification

Forks
1
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Pre-alpha. A PostgreSQL extension that calls TypeSafe AI (System One / Jev) from SQL for categorical work: Choice, Noul, and Score. Not affiliated with TypeSafe AI or the PostgreSQL Global Development Group. Supports PostgreSQL 15, 16, 17 and 18 on Linux and macOS, libcurl 7.61+.

Quoted from the project's README. Read the full README.

Highlights

  • Functions cover Noul, Choice, Score, and batched typesafe_detect_many and typesafe_classify_many variants.
  • The demo classifies 38 unique NYC 311 resolution strings in two TypeSafe requests.
  • typesafe_detect_many ran in 0.86 s versus 23 s calling typesafe_detect per row.
  • typesafe.mock_response returns a canned body for offline tests.

Watch out

Pre-alpha and tested on PostgreSQL 16 and 17; installation needs write access to pkglibdir and the key lives on the server.

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.

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

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

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