Skip navigation
I think I just cooked something 🔥
0:00 / 0:44

I think I just cooked something 🔥

Zachi

@iam_zachi5.1K followers

Visit on X
2,840 likesDownloadOriginal post

486,097 views

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 for $0.0009. Second run: 6ms from cache.

46 Comments

Comments from the original post on X (Twitter)

  • Zachi's profile picture

    @iam_zachi

    Livedemo:

    36 likes

  • getbygenius's profile picture

    @crtwithintent

    this shit is insane.

    15 likes

  • Zachi's profile picture

    @iam_zachi

    I know right Will have to calc the query costs on a real, big data prod db though

    7 likes

  • Zachi's profile picture

    @iam_zachi

    I hear you, 129 rows isn't much. Updating right now to ~4.500 rows! Will gradually increase to see how far we can take it. Will go live any minute! Oh and please star it on GitHub if you like it 🫶

    13 likes

  • LongStockMan (aka reply guy)'s profile picture

    @stock_long

    Yeah I spent about 2 hours brainstorming how I would even do this and here you go building it… great work

    6 likes

  • Zachi's profile picture

    @iam_zachi

    Why didn’t you just chat a bit with Claude or gpt?

    6 likes

  • LongStockMan (aka reply guy)'s profile picture

    @stock_long

    I did brother. I’m not a dev. I’m a quite retarded

    8 likes

  • Jack Vinijtrongjit's profile picture

    @juminoz

    Isn’t that actual extremely expensive? How do you deal with 10m rows?

    5 likes

  • GD's profile picture

    @gauravdhiman_ai

    Super nice, but not always accurate.

    3 likes

  • Allie the Icon's profile picture

    @allietheicon

    Oh my goshhhhh, this is so cool In exploring concepts for our launch demos, I made several where Jev was in the terminal and other similar things, but never thought to put it in an SQL context!

    3 likes

  • Zachi's profile picture

    @iam_zachi

    See? you should hire me

    1 like

  • Blake Johnson's profile picture

    @blake41

    Have you tried scaling up from 129 rows? Would be curious how speed and cost scale

    3 likes

  • Zachi's profile picture

    @iam_zachi

    Rushed it tbh, will focus on it later and try it out

    2 likes

  • Blake Johnson's profile picture

    @blake41

    It’s a cool idea!

  • Zachi's profile picture

    @iam_zachi

    Update: Scaled it by 30x. jev didn't even flinch haha

  • Blake Johnson's profile picture

    @blake41

    Numbers?

  • Josh's profile picture

    @joshjwilkin

    120 rows scan in 1s, is that not slow?

    2 likes

  • Rick Wong's profile picture

    @rickwong888

    This is brilliant. Hope to see more jev() embedded logic along regular data flows.

    1 like

  • 😎's profile picture

    @Saqrassahra

    That's crazy

    1 like

  • Dylan Slack's profile picture

    @dylnslck

    typesafe lowkey engineering these sorts of posts as a part of their gtm strategy

    1 like