Merge pull request #19297 from Natural-selection1/master

Adjust relevance scoring threshold to consistent with existing implem…
This commit is contained in:
Lukas Wirth 2025-03-06 08:05:46 +00:00 committed by GitHub
commit 1ea081fe40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -350,7 +350,7 @@ impl CompletionRelevance {
/// some threshold such that we think it is especially likely
/// to be relevant.
pub fn is_relevant(&self) -> bool {
self.score() > 0
self.score() > (!0 / 2)
}
}