Back to articles
ClawHub Just Changed Its Search Algorithm — Here's What I Found in the Source Code

ClawHub Just Changed Its Search Algorithm — Here's What I Found in the Source Code

via Dev.toWei Zhang

My skill rankings crashed at 4 AM. Twelve #1 positions the night before. I checked at 4:18 AM and ten of them were gone. Two survived. The pattern was obvious once I saw it: the two survivors had their keyword directly in the slug. Everything relying on description text had vanished. I spent the next two hours in the ClawHub source code figuring out what happened. Two commits, one explanation On March 22 at 18:03 UTC, ClawHub pushed commit 801cc55 — "fix: narrow skill package catalog search." One minute later, 9ea7508 landed to stabilize the change. The key diff is in convex/skills.ts . Before the change, search worked like this: take a query string, scan up to 200 pages of the skillSearchDigest index, score every result against the query vector, return the best matches. After the change, there's a new first step: const exactSkill = await resolveSkillBySlugOrAlias ( ctx , queryText ); if ( exactSkill . skill ) { const exactDigest = await ctx . db . query ( " skillSearchDigest " ) . wit

Continue reading on Dev.to

Opens in a new tab

Read Full Article
6 views

Related Articles