Home / Companies / Supabase / Blog / Post Details
Content Deep Dive

Automatic Embeddings in Postgres

Blog post from Supabase

Post Details
Company
Date Published
Author
Greg Richardson
Word Count
1,215
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

The text discusses automatic embeddings, a feature that automates the process of generating and updating vector representations of content in a database. This is achieved through the use of PostgreSQL extensions such as `pgvector`, `pgmq`, `pg_net`, and `pg_cron`. The approach eliminates the need for an external pipeline to manage embedding generation, reducing drift and complexity. Automatic embeddings can be implemented using either generated columns or trigger-based asynchronous pipelines. The latter involves using SQL triggers to enqueue work when rows are inserted or updated, and leveraging extensions like `pgmq` and `pg_net` to send requests to an Edge Function for embedding generation. This approach provides benefits such as no drift, bringing the model itself, and all SQL functionality. It also simplifies use cases like semantic search, recommendations, and retrieval-augmented generation (RAG).

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 60 2,390 404 144 +11%
Edge Computing 6 66 29 24 -25%
RAG 2 1,877 255 94 +10%
Observability 1 2,514 532 153 +20%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.