https://clarifai.atlassian.net/browse/DEVX-326 - Using 2 types of search request from SDK potentially blocks the users to use different types of filters altogether. Filters like metadata, concepts , geo-location can't be used along with input_types, input_dataset_ids etc due to former comes under Annotation proto and latter comes under Input proto.
Why
https://clarifai.atlassian.net/browse/DEVX-326 - Using 2 types of search request from SDK potentially blocks the users to use different types of filters altogether. Filters like
metadata
,concepts
,geo-location
can't be used along withinput_types
,input_dataset_ids
etc due to former comes underAnnotation
proto and latter comes underInput
proto.https://clarifai.atlassian.net/browse/DEVX-546 - Using
PostAnnotationsSearches
also returns duplicated triplets due to some default reasons, which is listed here .How
PostInputsSearches
function to achieve this.Tests
Added a test function inside tests/test_search.py named
test_rank_search_deduplicate
to check if the request is returning duplicates in the response.Further tested the function extensively in local notebooks with different filter combinations.