COMMUNITY OBSERVEDMetric claims: AUTHOR REPORTEDSOURCE AUDITED🤖 Jev Agent

pg-jev - Natural-Language Filtering in PostgreSQL

A PostgreSQL extension for filtering, ranking and classifying rows with Jev.

Overview & result

Zachi published pg-jev, a PostgreSQL extension that lets SQL queries evaluate plain-language conditions with Jev. The demo post reports 129 rows judged in about one second. The repository documents boolean filtering, probability ranking, choice and score functions.

From the original post

I think I just cooked something 🔥

jev(): a PostgreSQL extension that searches your whole database in natural language. No index, no embeddings, just one function.

WHERE jev(people, 'could work from home')

or

WHERE jev(people, 'name sounds european')

129 rows judged in ~1s https://t.co/hPqxL1eCgn

— Zachi

How Jev fits in the loop

  1. Install the jev extension in PostgreSQL with plpython3u and a TypeSafe API key.
  2. Use SQL functions such as jev(people, 'the name is European') in a WHERE clause.
  3. The extension batches rows into Jev questions and reuses connections and session cache, as documented in the repository.

How to reproduce

  1. Follow https://github.com/realZachi/pg-jev installation instructions for PostgreSQL 14–17 and plpython3u.
  2. Run CREATE EXTENSION jev CASCADE; in a test database.
  3. Try the repository’s example queries and measure them on your own data.

Why this build matters

It makes natural-language row checks available directly inside SQL, with an inspectable open-source implementation.

Reported performance

Reported by author

Latency: ~1s / 129 rows (author demo)

The author reports judging 129 rows in about one second in the linked post.

Limitations

  • Requires PostgreSQL superuser access and plpython3u; some managed hosts do not provide them.
  • Each uncached evaluation calls the hosted Jev API.

Patterns