Skip to content

Commit

Permalink
Added the similarity parameter to the KnnQuery type (#2261)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Mock <[email protected]>
  • Loading branch information
pstrsr and JoshMock authored Sep 27, 2023
1 parent d70d15b commit 0fb6d8e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
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.

4 changes: 3 additions & 1 deletion specification/_types/Knn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { Field } from '@_types/common'
import { long, double, float } from '@_types/Numeric'
import { long, float } from '@_types/Numeric'
import { QueryContainer } from './query_dsl/abstractions'

export type QueryVector = float[]
Expand All @@ -38,6 +38,8 @@ export interface KnnQuery {
boost?: float
/** Filters for the kNN search query */
filter?: QueryContainer | QueryContainer[]
/** The minimum similarity for a vector to be considered a match */
similarity?: float
}

/** @variants container */
Expand Down

0 comments on commit 0fb6d8e

Please sign in to comment.