Skip to content

Commit 9ff99c9

Browse files
committed
Wrap the overlong description bonus line in agent search
1 parent ec915f8 commit 9ff99c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/agent/agent-search.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function createAgentIndex(
3636
lexicalFields(profile.id, profileSearchText(profile)),
3737
queryTokens,
3838
rawQuery,
39-
) + ((profile.description ?? "").toLowerCase().includes(rawQuery) ? 0.5 : 0);
39+
) +
40+
((profile.description ?? "").toLowerCase().includes(rawQuery) ? 0.5 : 0);
4041

4142
return {
4243
search(query: string, limit = 12): AgentProfile[] {

0 commit comments

Comments
 (0)