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 define score in response as max score for individual vectors? #360

@yana2301

Description

@yana2301

Hello, I have a question on score calculation for approximate and exact search.

I've noticed that for queries that contain multiple vectors, the score is defined as the sum of scores for individual vectors.

Example query for approximate search:
{ "query": { "bool" : { "should" : [ { "knn": { "my_vector2": { "vector": [2, 3, 5, 6], "k": 2 } }}, { "knn": { "my_vector2": { "vector": [7, 8, 9, 10], "k": 2 } } } ], "minimum_should_match" : 1, "boost" : 1.0 } } }

For each document in response:
score = score for vector 1 + score for vector 2
The same situation with exact search.
My question is: is there a way to define response score as:
max(score for vector 1, score for vector 2) ?

Metadata

Metadata

Assignees

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