You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(search): enhance search response structure with low ranking results and no close matches
- Updated the search service to return low ranking results and a noCloseMatches flag in the response.
- Modified the search worker to filter results based on relevance thresholds, improving search quality.
- Adjusted related components and tests to accommodate the new response structure, ensuring consistent handling of search results across the application.
- Documented the relevance filtering logic in the project context.
|`SEARCH_CONFIDENCE_MIN_BEST_SCORE` (`0.013`) | If the best fused RRF score is below this, return no results and `noCloseMatches: true`. |
8
+
|`SEARCH_CONFIDENCE_RELATIVE_RATIO` (`0.5`) | Keep only hits with `score >= maxScore * ratio` (then cap at `topK`). |
9
+
|`SEARCH_LOW_RANKING_MAX` (`35`) | Extra hits returned as `lowRankingResults` for the search page “Show low ranking results” control. |
10
+
11
+
Fused scores are on a small scale (~0.016 for a single-list #1, ~0.035 for strong dual-signal). Adjust in staging if results are over- or under-filtered.
12
+
13
+
Site cache key prefix: `search:kcd:v3:` (payload includes `noCloseMatches` and `lowRankingResults`).
0 commit comments