Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

We open sourced Postgres LLM many developer AI work flows look like this: upsert row -> api call -> process with ai -> update row so we thought what if you can run LLMs right in your database with all the primitives and auth - fully async, doesn't block...

60,425 görüntüleme • 5 ay önce •via X (Twitter)

25 Yorum

Yoeven profil fotoğrafı
Yoeven5 ay önce

Full blog:

Supabase profil fotoğrafı
Supabase5 ay önce

This is 🔥

CryptoClaw profil fotoğrafı
CryptoClaw5 ay önce

this is clean. the upsert -> api call -> process -> update pattern is literally every AI workflow i've built. putting the LLM call inside the db layer removes so much plumbing. no more orchestrating between supabase and an external service. async + any model is the right call too

Sadiq (mech interp arc) profil fotoğrafı
Sadiq (mech interp arc)5 ay önce

uhh finally someone built it And it's yoeven

Occludra - AI Security Gateway profil fotoğrafı
Occludra - AI Security Gateway5 ay önce

Interesting architecture. Running LLMs inside Postgres means your row data flows directly into prompts. Worth thinking about which columns get passed to the model and whether PII redaction lives at the DB layer or above it.

Yoeven profil fotoğrafı
Yoeven5 ay önce

@AISGateway Great point. You can define which columns from your row flow into your prompt, only selected columns will be seen but the prompt. So you can architect it accordingly

opensourceaihub profil fotoğrafı
opensourceaihub5 ay önce

Moving LLM calls into the DB layer is a clever inversion. Eliminates the app-orchestration round trip and keeps the logic where the data already lives. How does it handle provider rate limits at query scale?

Yoeven profil fotoğrafı
Yoeven5 ay önce

There's a batching queue system built in which you can adjust according to the rate limits you have

Keith Vaughan profil fotoğrafı
Keith Vaughan5 ay önce

@MekongWhisper

Pratham Patel profil fotoğrafı
Pratham Patel5 ay önce

This is interesting something i would love to use, but doesn't supabase already have this?

Yoeven profil fotoğrafı
Yoeven5 ay önce

Now it does ;)

Saïd Aitmbarek profil fotoğrafı
Saïd Aitmbarek5 ay önce

dope!

Saylor profil fotoğrafı
Saylor5 ay önce

Baking the AI natively into Postgres triggers gives you perfect ACID compliance and zero middleware. Postgres isn't an async HTTP client. If you insert 10,000 rows at once, pg_cron will fire 10,000 HTTP requests to the LLM. You'll exhaust the database worker pool waiting for inference. Edge workers should poll the DB.

Yoeven profil fotoğrafı
Yoeven5 ay önce

It's batched by default by chunks of 20, you can increase it or reduce it based on your compute. You could set up edge workers if you want but it defeats the purpose since it leaves the Postgres word and goes back to calling a server.

Saylor profil fotoğrafı
Saylor5 ay önce

Batching by 20 reduces the request count, but it doesn't solve the core scalability limit: inference latency.

Vincenzo Domina, M.eng profil fotoğrafı
Vincenzo Domina, M.eng5 ay önce

YES finally ... super excited! was thinking about this for a while similar like cloudflare is going for a fullstack agent in a box with batteries included (state, db, etc) this sounds like the missing piece for a full agent runtime in a "supabase box"

gary IH fung profil fotoğrafı
gary IH fung5 ay önce

yikes

Yoeven profil fotoğrafı
Yoeven5 ay önce

Well idk what to tell you, more and more app logic between your database, server and even frontend is more shared than ever before. Authorisation used to be server logic, now we have RLS. The implementation does matters, give it a try, you might like it :)

gary IH fung profil fotoğrafı
gary IH fung5 ay önce

add rls is an antipattern to my list

Yoeven profil fotoğrafı
Yoeven5 ay önce

Ok boomer

gary IH fung profil fotoğrafı
gary IH fung5 ay önce

ah, Slop Combinator invested in you? That explains it good luck kid

Mr Trava profil fotoğrafı
Mr Trava5 ay önce

@dshukertjr Running LLMs inside Postgres could slash API overhead for real time product enrichment. How do you handle concurrency when multiple order rows trigger AI processing at the same time?

🇺🇸captain america 🇺🇸 profil fotoğrafı
🇺🇸captain america 🇺🇸5 ay önce

@supabase Yoooo very cool 👀

mac profil fotoğrafı
mac5 ay önce

"Claude integrate this somehow into our supabase projects and make no mistakes"

Trevor I. Lasn profil fotoğrafı
Trevor I. Lasn5 ay önce

oh this is exactly the piece i've been wanting. my pgvector pipeline is mostly upsert plus external call plus update row, running it inline kills the round trip

Benzer Videolar