File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -69,18 +69,18 @@ def delete_image(self, image_id: str) -> None:
69
69
def search (
70
70
self ,
71
71
query : str ,
72
- type : Optional [str ] = SearchType .semantic ,
72
+ search_type : Optional [str ] = SearchType .semantic ,
73
73
result_threshold : Optional [int ] = None ,
74
74
score_threshold : Optional [int ] = None ,
75
75
dynamic_score_percentage : Optional [int ] = None ,
76
76
) -> SearchResult :
77
- search = SearchFactory (self ._connection ).get_search (type )
77
+ search = SearchFactory (self ._connection ).get_search (search_type )
78
78
return search .search_inside_collection (
79
- self .id ,
80
- query ,
81
- result_threshold ,
82
- score_threshold ,
83
- dynamic_score_percentage ,
79
+ collection_id = self .id ,
80
+ query = query ,
81
+ result_threshold = result_threshold ,
82
+ score_threshold = score_threshold ,
83
+ dynamic_score_percentage = dynamic_score_percentage ,
84
84
)
85
85
86
86
def upload (
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ def search_inside_video(
174
174
)
175
175
return SearchResult (self ._connection , ** search_data )
176
176
177
- def search_inside_collection (** kwargs ):
177
+ def search_inside_collection (self , ** kwargs ):
178
178
raise NotImplementedError ("Keyword search will be implemented in the future" )
179
179
180
180
@@ -202,10 +202,9 @@ def search_inside_video(
202
202
"result_threshold" : result_threshold ,
203
203
},
204
204
)
205
- print (search_data )
206
205
return SearchResult (self ._connection , ** search_data )
207
206
208
- def search_inside_collection (** kwargs ):
207
+ def search_inside_collection (self , ** kwargs ):
209
208
raise NotImplementedError ("Scene search will be implemented in the future" )
210
209
211
210
You can’t perform that action at this time.
0 commit comments