Commit 0d705c9
refactor(@angular/cli): implement weighted search for MCP examples
This commit improves the relevance of the `find_examples` MCP server tool by implementing weighted search ranking.
The FTS5 query now uses the `bm25()` ranking function to assign a higher weight to matches found in more important fields. Specifically, matches in the `title`, `summary`, and `keywords` are now weighted more heavily than matches in the main content.
This results in more accurate and intuitive search results, as examples where the query terms are central to the topic are ranked higher.1 parent d014630 commit 0d705c9
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
0 commit comments