You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KNNQuery execution has many moving parts. It intelligently selects between exact knn search and approximate search, it rescores when there is oversampling factor present and it also executes filter query if any. With varying number of use cases, its difficult to figure out time taken by each or a combination of these individually to optimize the query or debug latencies. The request is to add time taken be each of these components when profile = true which increases visibility
What solution would you like?
I propose two new additional components in query break down exact_knn_search and ann_search along with the support to have visibility on filter query in knn in the current breakdown tree. Here is the sample response
Is your feature request related to a problem?
KNNQuery execution has many moving parts. It intelligently selects between exact knn search and approximate search, it rescores when there is oversampling factor present and it also executes filter query if any. With varying number of use cases, its difficult to figure out time taken by each or a combination of these individually to optimize the query or debug latencies. The request is to add time taken be each of these components when
profile = true
which increases visibilityWhat solution would you like?
I propose two new additional components in query break down
exact_knn_search
andann_search
along with the support to have visibility on filter query in knn in the current breakdown tree. Here is the sample responseHere is the POC code that adds this ability, it requires changes in Opensearch and knn-plugin
Opensearch: https://github.com/shatejas/OpenSearch/tree/knnProfiler
KNN plugin : main...shatejas:k-NN:knnprofilerquery
Whats missing in POC
What alternatives have you considered?
Another approach would be to use KNNStats to be able to have metrics around these components. The solution is not yet explored
The text was updated successfully, but these errors were encountered: