The case against pgvector
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Teams betting on pgvector for large-scale vector search learn the hard-won pitfalls, index maintenance, insert throughput and pre- vs post-filtering, before they hit them themselves.
Alex Jacobs wrote a detailed guide on the problems of running pgvector, a database add-on that lets the PostgreSQL database store and search AI embeddings (numeric fingerprints of text used for similarity search). He explains that keeping huge indexes up to date with fast-changing data is hard, and that filtering queries by document status before or after the vector search can make a query take 50ms or 5 seconds. A Hacker News discussion adds how Discourse runs pgvector at scale.
If your company is embedding vector search inside PostgreSQL using pgvector, this article documents the operational risks before you commit: IVFFlat and HNSW indexes become expensive to maintain with frequent updates, and naive filtering can turn a 50ms query into a 5-second one with wrong results. Counterpoint: Discourse reports running pgvector across thousands of databases, serving billions of page views, using quantization to make it viable everywhere.
Jacobs details maintaining large pgvector indexes with near-realtime updates using IVFFlat or HNSW index types. The key section covers pre- vs post-filtering: filtering on document status before the vector search versus after changes both latency and result relevance by orders of magnitude. In the Hacker News thread, Rafael dos Santos Silva (xfalcox) describes Discourse's production setup: halfvec (16-bit float) for storage and bit (binary vectors) for indexes, quantization that made enabling it across all hosting viable.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
The Download: Better bionic hands and AI’s natural-gas boom
This newsletter roundup mostly relays other outlets' reporting; its two own stories flag sensory-linked prosthetics reaching home use and AI data centers locking the US grid into natural gas.
sqlite3_rsync: Database Remote-Copy Tool For SQLite
sqlite3_rsync lets developers snapshot or sync a live SQLite database to a remote machine over SSH without needing free disk space for a full local copy.
Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems
Hugging Face published a reproducible recipe and code showing a trained four-agent LLM team can beat an untrained one at 13x lower token cost, though the key question, whether communication beats extra compute, remains untested.