> 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.
arguiot 3 days ago [-]
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.
BoorishBears 2 days ago [-]
> Supabase
Now the article makes sense.
auraham 2 days ago [-]
can you elaborate?
BoorishBears 1 days ago [-]
On CloudSQL/Aurora I'd just turn on the SSD cache and use a smaller replica if it really came down to it.
But also migrating while having no vector index and misusing/misunderstanding FTS is very "I tried nothing and it didn't work".
They're also using Prisma for an extremely data intensive application which is a huge wtf to me, especially in the current age.
Aaronseq 3 days ago [-]
[dead]
0c3ca83 3 days ago [-]
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.
yieldcrv 3 days ago [-]
appeal to authority
you gotta realize that blog entries are just unilateral forum comments that would have been dissected or outright dismissed
antonvs 3 days ago [-]
Claude/Marvin: “Brain the size of a planet, and they’re making me write these inane puff pieces. I’ll show them!”
Onavo 3 days ago [-]
Wonderful, they re-invented stemming and traditional NLP.
JimBlackwood 2 days ago [-]
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.
genxy 2 days ago [-]
> 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.
piterrro 3 days ago [-]
There is almost zero info about their setup and what they built, beside some vague statement. I learned nothing.
fg137 2 days ago [-]
This is why I look at the comments for vibes first before deciding whether to read the article.
pcthrowaway 3 days ago [-]
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.
tarr11 3 days ago [-]
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
nemothekid 3 days ago [-]
>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.
pcthrowaway 2 days ago [-]
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.
nemothekid 1 days ago [-]
>Can you name me a large organization (>1000 employees) that doesn't have any infra (even cloud infra) though?
I once spoke to a medium sized gym chain that did not have any cloud infra. Everything was SaaS. The bulk of their "infra" was the PoS systems and security systems that were located physically inside the gyms. A "self hosted" solution would immediately become more expensive because they would have needed to hire someone to manage their AWS account. I also worked with a international agency (under 1,000 employees though, I'd estimate ~500 in various offices), and there too everything was SaaS. Between Office 365, Okta, Figma, Box, etc, most of their software needs were handled.
The kind of company that may want a service a like this may not have significant onprem-IT resources. Infact they may have in the past, but slowly atrophied them by moving everything to the cloud. Even if on-prem was on paper cheaper, that gap was solved by laying off the expertise that handled those systems.
>No, but lots of software projects do. Very popular with open-core models.
Yeah, like databases. If it seems like I'm implying that your kind of sales tactic never works, then I wasn't precise enough. I think the most companies interested in a third party ai notetaker may not find self-custody attractive (unless they are in Europe, but even then I think the european analouges would just not purchase a product like this)
arguiot 3 days ago [-]
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.
pcthrowaway 2 days ago [-]
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.
Tsarp 2 days ago [-]
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.
Why did they use no index with pgvector? Does not sound convincing.
arguiot 3 days ago [-]
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.
Foobar8568 3 days ago [-]
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..
cobwebcheck 3 days ago [-]
[dead]
rushabh5000 2 days ago [-]
[dead]
curt15 3 days ago [-]
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?
arguiot 3 days ago [-]
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.
fg137 2 days ago [-]
Because putting "Rust" in the title is cool, but putting Java there is boring.
mannyv 3 days ago [-]
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.
arguiot 3 days ago [-]
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.
otterley 3 days ago [-]
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?
asdfsa32 3 days ago [-]
People ask what is AI slop? This. This is AI slop.
serjester 3 days ago [-]
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.
arguiot 3 days ago [-]
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.
aftabdx 1 days ago [-]
[dead]
aftabdx 1 days ago [-]
[dead]
redskyluan 3 days ago [-]
[dead]
AyishikD 3 days ago [-]
[dead]
Rendered at 10:13:23 GMT+0000 (Coordinated Universal Time) with Vercel.
> 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.
Now the article makes sense.
But also migrating while having no vector index and misusing/misunderstanding FTS is very "I tried nothing and it didn't work".
They're also using Prisma for an extremely data intensive application which is a huge wtf to me, especially in the current age.
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 gotta realize that blog entries are just unilateral forum comments that would have been dissected or outright dismissed
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.
It's an interesting idea, this kind of complexity is more achievable now than it was pre-AI
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.
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.
I once spoke to a medium sized gym chain that did not have any cloud infra. Everything was SaaS. The bulk of their "infra" was the PoS systems and security systems that were located physically inside the gyms. A "self hosted" solution would immediately become more expensive because they would have needed to hire someone to manage their AWS account. I also worked with a international agency (under 1,000 employees though, I'd estimate ~500 in various offices), and there too everything was SaaS. Between Office 365, Okta, Figma, Box, etc, most of their software needs were handled.
The kind of company that may want a service a like this may not have significant onprem-IT resources. Infact they may have in the past, but slowly atrophied them by moving everything to the cloud. Even if on-prem was on paper cheaper, that gap was solved by laying off the expertise that handled those systems.
>No, but lots of software projects do. Very popular with open-core models.
Yeah, like databases. If it seems like I'm implying that your kind of sales tactic never works, then I wasn't precise enough. I think the most companies interested in a third party ai notetaker may not find self-custody attractive (unless they are in Europe, but even then I think the european analouges would just not purchase a product like this)
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.
Never mind I read 1.7b of vectors, not a lousy 1.7tb worth of data. Lol..
It's odd they were stemming and not stemming.
They should probably ask claude to merge some lucene-like functionality in there for kicks.
Even in the most optimistic scenarios, we’re talking about saving a couple grand a month.