Open pyk0023 opened 2 years ago
Hello. I have a question about custom scoring.
I can get L2Norm-based knn score and cosine-based knn score.
What I want is weighted sum of two scoring method. score(d,q) = w1 * (1/(1+L2Norm(v1(d),v1(q))) + w2 * cosine(v2(d),v2(q))
score(d,q) = w1 * (1/(1+L2Norm(v1(d),v1(q))) + w2 * cosine(v2(d),v2(q))
Is there any way to get this custom score?
(It seems that only one scoring method is possible for one index, because scoring method is declared in index creating time, am I right?)
Hi @pyk0023 , I would recommend trying out the painless scoring feature.
Hello. I have a question about custom scoring.
I can get L2Norm-based knn score and cosine-based knn score.
What I want is weighted sum of two scoring method.
score(d,q) = w1 * (1/(1+L2Norm(v1(d),v1(q))) + w2 * cosine(v2(d),v2(q))
Is there any way to get this custom score?
(It seems that only one scoring method is possible for one index, because scoring method is declared in index creating time, am I right?)