We moved 1.7 TB off pgvector to our own Rust search engine circleback.ai · 15 po...
HN Best 200 @best
We moved 1.7 TB off pgvector to our own Rust search engine circleback.ai · 15 points · 6 comments · HN thread
TL;DR Circleback, a meeting transcription and search product, moved about 1.7 TB of transcript embeddings out of Postgres/pgvector into Orion, an in-house search engine written in Rust that keeps its index in blob storage such as S3 or Google Cloud Storage. They report searches on their largest accounts dropping from 20-40 seconds to tens of milliseconds for Orion itself, better recall, and search costs about a tenth of before (expected, not yet measured).
- Search in Postgres used pgvector with no vector index, so every search scanned chunks of every meeting the user could read, which read from disk and slowed the whole app.
- Full-text search stemmed transcripts but not queries, so 'pricing' never matched 'price', and CJK characters were lost.
- Orion keeps index files in blob storage, caches what searches need in memory and on local disk, and uses compare-and-swap style updates to a manifest file so concurrent writes don't overwrite each other.
- Each meeting gets its own index section and shards are assigned so a search only opens shards holding meetings the caller may read; permissions are enforced by the application, not Orion.
- The team switched to jemalloc to fix memory retention, and found a Prisma binary-column copying issue that caused long GC pauses; a quantized embedding model was dropped because it changed results.
- Agents now make most of the roughly 3.5 million monthly searches (almost 9 in 10 in October), up 18 times from January.
Discussion The thread is small and skeptical. Commenters mostly question the engineering choices behind the rewrite: whether the Postgres setup was ever properly tuned (missing vector index, unmatched stemming) before building a new system, and why a comparison was made against an unoptimised baseline. One commenter reacts sharply to the post's framing and suggests it reads like unreviewed AI-generated text, and a reply pushes back that blog posts are just unilateral claims that deserve scrutiny. Cost is also questioned, since a local embedding model runs cheaply.
- Postgres was not properly optimised before the rewrite (many): Commenters argue the missing vector index and mismatched stemming are basic fixes that should have been tried first, so the benchmark against Postgres is not a fair comparison.
- Blog post reads as unreviewed AI output (some): One commenter suspects the write-up was generated without careful editing and questions whether the authors should have made some of the admissions in it.
- Skeptical of the 'appeal to authority' pushback (a few): A reply argues that a company blog is an unilateral forum comment that should be scrutinised like any other, not treated as settled.
- Embedding costs look overstated (a few): A commenter who runs a local embedding model on a Mac Mini says it is fast and cheap, so questions why embeddings were such a large cost.
- Inconsistent stemming choice is odd (a few): One commenter finds it strange that the team stemmed documents but not queries, calling it an unconvincing design choice.
#vectorSearch #pgvector #postgres #rust #infrastructure #searchEngines