Rank-derived score for the `rank`-th KG search result (0-based).
(rank: usize)
| 549 | |
| 550 | /// Rank-derived score for the `rank`-th KG search result (0-based). |
| 551 | fn rank_score(rank: usize) -> f64 { |
| 552 | 1.0 / (1.0 + rank as f64) |
| 553 | } |
| 554 | |
| 555 | /// Lowercased, deduplicated terms using KG FTS rules plus a small allowlist of |
| 556 | /// meaningful short technology names. Exact token matching prevents substring |