Skip to content

Commit

Permalink
modified weight for knn scorer
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Jan 6, 2025
1 parent be61628 commit 5992c77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion search/scorer/scorer_knn.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ func (sqs *KNNQueryScorer) Score(ctx *search.SearchContext,
}

func (sqs *KNNQueryScorer) Weight() float64 {
return sqs.queryBoost * sqs.queryBoost
// return sqs.queryBoost * sqs.queryBoost
// gets multiplied by boost down the line
return 1.0
}

func (sqs *KNNQueryScorer) SetQueryNorm(qnorm float64) {
Expand Down

0 comments on commit 5992c77

Please sign in to comment.