Skip to content

KnnQuery interface is not complete #2013

Closed
@bijela-gora

Description

@bijela-gora

🐛 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:

Screenshot from 2023-09-19 23-59-47

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions