Skip to content
System One

Natural-language queries inside PostgreSQL (X)

A video demo of jev(), a PostgreSQL extension that filters rows with a natural-language condition inside a WHERE clause with no index or embeddings. It judged 129 rows in about 1 second for $0.0009, and 6 milliseconds on a cached rerun.

Still from Natural-language queries inside PostgreSQL (X)Play the video in the post below
Still from x.com

Post on X

Views
478,457
Likes
2,834
Reposts
186

Read from X on . Counts change daily.

Reported by the author

First run
129 rows/~1s129 rows judged in ~1sx.com
Cost
$0.0009for $0.0009x.com
Cached rerun
6 msSecond run: 6ms from cachex.com

jev() is a PostgreSQL extension that adds natural-language conditions to a WHERE clause, so a query can filter on something like people could work from home or name sounds european with no index or embeddings column to maintain. Each row gets a yes-or-no judgment from Jev rather than a string match or a vector similarity score.

Zachi’s demo judged 129 rows in about a second for $0.0009 on the first run; running the same query again came back in 6 milliseconds because the result was cached rather than re-judged.

Open on X

PrimitivesNoul

More like this

Keep browsing