158 karma · joined Apr 27, 2025 (1y ago) · 31 submissions
1.
Agent-First vs. Agent-Second Engineering(thomasvandongen.dev ↗)
1 points · by Bibabomas · 2mo ago · discuss
comment 4mo ago · link · parent
"In larger sets, all vectors are not loaded into memory at once": this is also not correct, at least in the implementation you shared. The similarity matrix is processed in blocks, but the embeddings themselves are loaded all at once and stacked into one NumPy matrix, hence the memory peak.
So in larger projects, more than half of the time is spent on the similarity search step, and almost all the memory is spent there as well.
comment 4mo ago · link · parent
I also don't think the backend is the "easiest part" here, a lot of the scalability lives there, which is important for monorepos, or cases where you want to deduplicate across projects. For example, from looking at the implementation, you use exact brute-force similarity search (comparing every item to every other item) which is an O(n^2) operation. It also allocates large dense similarity blocks in memory, so memory use won’t scale well either.
comment 4mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
The tool itself is fully local though, so there's no real security risks there, there are no outbound network calls or anything like that.
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
27.
Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep(github.com ↗)
445 points · by Bibabomas · 6mo ago · 151 comments