Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

[Question] Is it possible to calculate weighted sum of two different knn score? #362

Open
pyk0023 opened this issue Dec 13, 2021 · 1 comment

Comments

@pyk0023
Copy link

pyk0023 commented Dec 13, 2021

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

@jmazanec15
Copy link
Member

Hi @pyk0023 , I would recommend trying out the painless scoring feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants