Open jmazanec15 opened 6 months ago
@jmazanec15 You can use generic search operation to perform above query. However, this will not give you recall for script. Is recall required for part of your results? IIRC, search operation can support fixed query, it can't support dynamic values. @gkamat @IanHoang Can you correct me if i am wrong? Thanks
@jmazanec15 @VijayanB Are you requesting that this query be added to the
EDIT: Reopened as these would apply to already built-in OSB core operations that were added a while back.vectorsearch
workload specifically? If so, please make create an issue in the OSB workloads repository instead and feel free to link the contents there.
Search operations can also support dynamic values, through the help of custom param sources. To do this, you'll need to do the following:
operations/default.json
. Instead of adding the body
field, add a field called param-source
with your custom param source name, let's say "knn-score-script-custom-params". workloads.py
and register that method as the param source for "knn-score-script-custom-params". To see examples of these steps, see the geonames workload.
Description
For vector search, right now, we benchmark ANN methods that approximate nearest neighbor search. In addition to this, some users want to run exact k-NN search that returns the exact nearest neighbors per query. To do this, users can use the following query:
docs: https://opensearch.org/docs/latest/search-plugins/knn/knn-score-script/
I want to add this query as another option for benchmarking purposes.