Skip to content

Commit 6dc5adc

Browse files
author
Peter Straßer
committed
Fixed similarity not being a required field
1 parent 0c5ddb6 commit 6dc5adc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

output/schema/schema.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/knn_search/_types/Knn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ export interface Query {
3737
boost?: float
3838
/** Filters for the kNN search query */
3939
filter?: QueryContainer | QueryContainer[]
40-
/** The required minimum similarity for a vector to be considered a match */
41-
similarity: double
40+
/** The minimum similarity for a vector to be considered a match */
41+
similarity?: double
4242
}

specification/_types/Knn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export interface KnnQuery {
3838
boost?: float
3939
/** Filters for the kNN search query */
4040
filter?: QueryContainer | QueryContainer[]
41-
/** The required minimum similarity for a vector to be considered a match */
42-
similarity: double
41+
/** The minimum similarity for a vector to be considered a match */
42+
similarity?: double
4343
}
4444

4545
/** @variants container */

0 commit comments

Comments
 (0)