Closed
Description
🐛 Bug Report
According to the documentation the KnnQuery interface must contain optional property similarity
(type float
).
Because of the missing similarity
property on KnnQuery
interface it is inconvenient to use .search
API:
Additionally to that k
and num_candidates
properties should have type of integer
.
Expected behavior
export interface KnnQuery {
field: Field
query_vector?: QueryVector
query_vector_builder?: QueryVectorBuilder
k: integer
num_candidates: integer
similarity?: float
boost?: float
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
}
Metadata
Metadata
Assignees
Labels
No labels