Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was 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

@pyk0023

Description

@pyk0023

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions