Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ yellow | [255.0, 255.0, 0.0]
knnWithPrefilter
required_capability: knn_function_v3

from colors metadata _score
| where knn(rgb_vector, [128,128,0], 10) and (match(color, "olive") or match(color, "green"))
| sort _score desc, color asc
| keep color, rgb_vector
from colors
| where knn(rgb_vector, [120,180,0], 10) and (match(color, "olive") or match(color, "green"))
| sort color asc
| keep color
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably still keep the rgb_vector data for this test even if we're no longer sorting on score?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could - however, I don't see the point as we don't need to check scores here, so it doesn't serve any debugging purpose.

;

color:text | rgb_vector:dense_vector
olive | [128.0, 128.0, 0.0]
green | [0.0, 128.0, 0.0]
color:text
green
olive
;

knnWithNegatedPrefilter
Expand Down