Adjust relevance scoring threshold to consistent with existing implementations

This commit is contained in:
Tongjun Gao 2025-03-06 10:14:39 +08:00
parent 2cff7013c0
commit d95d2784da

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)
}
}