Commit 9e3ef5e
committed
session_search: fix false-positive vector results + narrow deep search pool
Two bugs in handleSearch:
1. Vector score threshold 0.05 was too permissive — Random Projections
(bag-of-words) matches generic tech queries against 'say hello'
sessions at 0.30-0.36. Raised to 0.40 so only genuinely strong
semantic matches pass Phase 1; everything else falls through to
keyword search.
2. Deep search limited candidates to List(listLimit) = 20 recent
sessions. When the last 20+ sessions are all 'say hello' heartbeats,
substantive older sessions were never found. Changed to List(0)
to scan all sessions.1 parent 086f212 commit 9e3ef5e
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
167 | 176 | | |
168 | 177 | | |
169 | 178 | | |
| |||
190 | 199 | | |
191 | 200 | | |
192 | 201 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
0 commit comments