> 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.
I really don’t get it, am I missing something here?
Full-text search on a lousy 1.7TB was needed with only a few million searches per month, and searches were somehow slowing down an application? What are they talking about when they say “Many companies have a similar architecture, which isn't really an issue until you have to scale it.”? 1.7TB really isn’t scaling anything.
I can’t imagine you cannot make this more than fast enough on a 200€/month dedicated server.
Feels like a complete overkill to write your own engine for this.
Not everything needs a fun quirky data structure, but the few times I have had bloom filters really fit the problem, wow, they saved 100x in a couple dimensions.
5M searches a month is 2 searches/sec delivered evenly.
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.
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
>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.
No, but lots of software projects do. Very popular with open-core models. Typically you can self-host the OSS version, or pay for a managed installation (in which your data is presumably siloed from others')
Can you name me a large organization (>1000 employees) that doesn't have any infra (even cloud infra) though?
I'll be honest, I didn't entirely understand what circleback does when I made that comment. I do see why hosting the transcripts unlocks some additional capabilities for which the burden would be shifted to clients if large ones were expected to self-host. I do understand why encrypted-at-rest without Circleback having decrypt keys limits some capabilities (though I still question the model and value).
What I still don't understand is why they've seemingly stored the data for all their clients in one place, which caused the problem described in the blog.
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 didn't fully understand what circleback did when I made that comment.
What I still don't understand is why the managed, hosted Circleback service stores all the user transcripts in one place rather than siloing them (which would presumably enable search speed-ups)
Personally I think meeting transcripts are too sensitive for me to want businesses to host them externally, but I otherwise understand why the capabilities unlocked by allowing circleback to host them are appealing to some.
I've spent some time in this area and my naive learning so far is you can get 90% of the way in a weekend, the remaining 10%, the stuff that matters needs a lifetime of work or some really cracked dedicated folks working on it.
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.
> Supabase
Now the article makes sense.
can you elaborate?
[dead]
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.
I really don’t get it, am I missing something here?
Full-text search on a lousy 1.7TB was needed with only a few million searches per month, and searches were somehow slowing down an application? What are they talking about when they say “Many companies have a similar architecture, which isn't really an issue until you have to scale it.”? 1.7TB really isn’t scaling anything.
I can’t imagine you cannot make this more than fast enough on a 200€/month dedicated server.
Feels like a complete overkill to write your own engine for this.
> cs the shit out of this, make no mistakes.
Not everything needs a fun quirky data structure, but the few times I have had bloom filters really fit the problem, wow, they saved 100x in a couple dimensions.
5M searches a month is 2 searches/sec delivered evenly.
There is almost zero info about their setup and what they built, beside some vague statement. I learned nothing.
This is why I look at the comments for vibes first before deciding whether to read the article.
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.
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
>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.
No, but lots of software projects do. Very popular with open-core models. Typically you can self-host the OSS version, or pay for a managed installation (in which your data is presumably siloed from others')
Can you name me a large organization (>1000 employees) that doesn't have any infra (even cloud infra) though?
I'll be honest, I didn't entirely understand what circleback does when I made that comment. I do see why hosting the transcripts unlocks some additional capabilities for which the burden would be shifted to clients if large ones were expected to self-host. I do understand why encrypted-at-rest without Circleback having decrypt keys limits some capabilities (though I still question the model and value).
What I still don't understand is why they've seemingly stored the data for all their clients in one place, which caused the problem described in the blog.
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 didn't fully understand what circleback did when I made that comment.
What I still don't understand is why the managed, hosted Circleback service stores all the user transcripts in one place rather than siloing them (which would presumably enable search speed-ups)
Personally I think meeting transcripts are too sensitive for me to want businesses to host them externally, but I otherwise understand why the capabilities unlocked by allowing circleback to host them are appealing to some.
Was something like lancedb considered?
I've spent some time in this area and my naive learning so far is you can get 90% of the way in a weekend, the remaining 10%, the stuff that matters needs a lifetime of work or some really cracked dedicated folks working on it.
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..
[dead]
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.
Because putting "Rust" in the title is cool, but putting Java there is boring.
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.
[dead]
[dead]
[dead]