> we cut words down to their root, so "pricing" became "price". We didn't do the same to searches, so a search for "pricing" never found "price".
Was there any attempt to fix these deficiencies before creating a whole new system? It seems like the functionality & performance comparison would be more meaningful against an optimised PG.
Absolutely! In fact, we were initially strongly biased toward optimizing the current setup. I should have clarified this better in the blog post, but the stemming mismatch was a bug we could have fixed in Postgres, although our Supabase setup made that difficult. The real issue is that Postgres shares one cache across all workloads, so even with a vector index, growing data would keep competing with our hot app data for RAM. Isolating search on a dedicated replica felt like decoupling the database and search anyway. We did the napkin math on the cost and decided to go straight for the specialized solution.
What are you implying? I expect the custom search to be executed as competently as their postgres implementation.
Seriously, I'm not sure how they wrote this up without asking themselves whether they should be admitting to any of this. The only conclusion I can come to is that they didn't actually read the ai output.
You make software to transcribe meetings on your server. Fine.
Once transcribed though, what good reason is there for you to keep it on your servers, unencrypted to fulfill your users' search requests? Couldn't you store it encrypted (if at all), with client custody of the decryption keys, and search happening locally in the client application?
OK, maybe for large organizations you don't want to send gigabytes of transcript logs to each client application. So let large organizations host their own transcript store running your transcript search, and sell them an SLA. Search then happens using your software, on their deployment.
Solves a lot of technical challenges from mixing everyone's meeting transcripts together and storing them all in one location, and it's more respectful of your clients' privacy.
>So let large organizations host their own transcript store running your transcript search, and sell them an SLA. Search then happens using your software, on their deployment.
Have you actually tried to sell applications like this? There are plenty of 'large organizations' that simply do not have their own infra, or in which deploying inside their network is incredibly expensive.
What you are arguing for is moving all compute over this data to the client, not just search. For example, if they wanted to have an agent scan it for some topic, or generate an monthly report of what happened in meetings, these would all need to be figured out up front or you would need to push the agent to the client, or make some other system that temporarily moves it back.
It's an interesting idea, this kind of complexity is more achievable now than it was pre-AI
Very valid criticism here, but not all apps should be local-first. Many of our customers chose Circleback because we’re good at two things (among many others): providing access to a higher level of intelligence than our competitors (big models can’t run locally) and enabling collaboration. It’s very hard to offer good sharing and collaboration without using the cloud.
I left another reply above, but we did try it and we were not convinced by the results. Although it works extremely well on its own, and pgvector is amazing, when you put app data and vector data in the same database, the way Postgres stores indexes in RAM ends up being less efficient for the whole app.
Nope! The language doesn't actually matter here at all, and this could have been written in any language. The developer experience of Rust and certain concurrency features are why we chose it for this use case.
Yes and no. Embeddings themselves can be expensive at scale, but what costs more is not sharing the compute. Our database and embeddings service used to run on different machines, like having two Mac minis. We changed things to allow the vector database and embedding generation to run on the same machine, massively reducing costs.
Is going from two machines to one a "massive" cost reduction? Are we talking literally about going from two to one, or are you operating at such large scale that a 50% cost reduction translates to a very large number in absolute dollars?
The justification for hand-rolling a vector db is you’d still need a second service to generate the embeddings? Shocking anyone would admit to this, much less write an article about it.
Even in the most optimistic scenarios, we’re talking about saving a couple grand a month.
The embedding service is actually part of Orion itself, so we can reuse a lot of the same compute for both managing vectors and creating them, making it much more efficient. At our scale, this has saved a significant amount of money and engineering time.
> We had 1.7 TB of those and no vector index
> we cut words down to their root, so "pricing" became "price". We didn't do the same to searches, so a search for "pricing" never found "price".
Was there any attempt to fix these deficiencies before creating a whole new system? It seems like the functionality & performance comparison would be more meaningful against an optimised PG.
Absolutely! In fact, we were initially strongly biased toward optimizing the current setup. I should have clarified this better in the blog post, but the stemming mismatch was a bug we could have fixed in Postgres, although our Supabase setup made that difficult. The real issue is that Postgres shares one cache across all workloads, so even with a vector index, growing data would keep competing with our hot app data for RAM. Isolating search on a dedicated replica felt like decoupling the database and search anyway. We did the napkin math on the cost and decided to go straight for the specialized solution.
What are you implying? I expect the custom search to be executed as competently as their postgres implementation.
Seriously, I'm not sure how they wrote this up without asking themselves whether they should be admitting to any of this. The only conclusion I can come to is that they didn't actually read the ai output.
appeal to authority
you gotta realize that blog entries are just unilateral forum comments that would have been dissected or outright dismissed
Claude/Marvin: “Brain the size of a planet, and they’re making me write these inane puff pieces. I’ll show them!”
Wonderful, they re-invented stemming and traditional NLP.
There is almost zero info about their setup and what they built, beside some vague statement. I learned nothing.
Why do people design applications like this?
You make software to transcribe meetings on your server. Fine.
Once transcribed though, what good reason is there for you to keep it on your servers, unencrypted to fulfill your users' search requests? Couldn't you store it encrypted (if at all), with client custody of the decryption keys, and search happening locally in the client application?
OK, maybe for large organizations you don't want to send gigabytes of transcript logs to each client application. So let large organizations host their own transcript store running your transcript search, and sell them an SLA. Search then happens using your software, on their deployment.
Solves a lot of technical challenges from mixing everyone's meeting transcripts together and storing them all in one location, and it's more respectful of your clients' privacy.
>So let large organizations host their own transcript store running your transcript search, and sell them an SLA. Search then happens using your software, on their deployment.
Have you actually tried to sell applications like this? There are plenty of 'large organizations' that simply do not have their own infra, or in which deploying inside their network is incredibly expensive.
What you are arguing for is moving all compute over this data to the client, not just search. For example, if they wanted to have an agent scan it for some topic, or generate an monthly report of what happened in meetings, these would all need to be figured out up front or you would need to push the agent to the client, or make some other system that temporarily moves it back.
It's an interesting idea, this kind of complexity is more achievable now than it was pre-AI
Very valid criticism here, but not all apps should be local-first. Many of our customers chose Circleback because we’re good at two things (among many others): providing access to a higher level of intelligence than our competitors (big models can’t run locally) and enabling collaboration. It’s very hard to offer good sharing and collaboration without using the cloud.
have you considered https://github.com/quickwit-oss/tantivy ?
Why did they use no index with pgvector? Does not sound convincing.
I left another reply above, but we did try it and we were not convinced by the results. Although it works extremely well on its own, and pgvector is amazing, when you put app data and vector data in the same database, the way Postgres stores indexes in RAM ends up being less efficient for the whole app.
I’d say hellish maintenance. Pgvector is doesn’t look great at that scale, neither are competitions…
Never mind I read 1.7b of vectors, not a lousy 1.7tb worth of data. Lol..
Is Rust supposed to be particularly noteworthy here? If they had implemented it in Java 25 would they advertise as their own Java search engine?
Nope! The language doesn't actually matter here at all, and this could have been written in any language. The developer experience of Rust and certain concurrency features are why we chose it for this use case.
Does embedding cost a lot in the corporate world? A local embedding model is super fast; I run one on an 8gb Mac Mini.
It's odd they were stemming and not stemming.
They should probably ask claude to merge some lucene-like functionality in there for kicks.
Yes and no. Embeddings themselves can be expensive at scale, but what costs more is not sharing the compute. Our database and embeddings service used to run on different machines, like having two Mac minis. We changed things to allow the vector database and embedding generation to run on the same machine, massively reducing costs.
Is going from two machines to one a "massive" cost reduction? Are we talking literally about going from two to one, or are you operating at such large scale that a 50% cost reduction translates to a very large number in absolute dollars?
People ask what is AI slop? This. This is AI slop.
The justification for hand-rolling a vector db is you’d still need a second service to generate the embeddings? Shocking anyone would admit to this, much less write an article about it.
Even in the most optimistic scenarios, we’re talking about saving a couple grand a month.
The embedding service is actually part of Orion itself, so we can reuse a lot of the same compute for both managing vectors and creating them, making it much more efficient. At our scale, this has saved a significant amount of money and engineering time.