Skip to content

Commit

Permalink
adding k to knn search (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta authored Aug 9, 2024
1 parent cdaa744 commit 84399d0
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 6 deletions.
4 changes: 4 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions specification/_types/Knn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export interface KnnQuery extends QueryBase {
query_vector_builder?: QueryVectorBuilder
/** The number of nearest neighbor candidates to consider per shard */
num_candidates?: integer
/** The final number of nearest neighbors to return as top hits */
k?: integer
/** Filters for the kNN search query */
filter?: QueryContainer | QueryContainer[]
/** The minimum similarity for a vector to be considered a match */
Expand Down

0 comments on commit 84399d0

Please sign in to comment.