99from engine .clients .qdrant .search import QdrantSearcher
1010from engine .clients .qdrant .upload import QdrantUploader
1111
12-
1312ENGINE_CONFIGURATORS = {
1413 "qdrant" : QdrantConfigurator ,
1514}
@@ -31,17 +30,17 @@ def _create_configurator(self, experiment) -> BaseConfigurator:
3130 engine_configurator_class = ENGINE_CONFIGURATORS [experiment ["engine" ]]
3231 engine_configurator = engine_configurator_class (
3332 self .host ,
34- experiment .get ("collection_params" , {}),
35- experiment .get ("connection_params" , {}),
33+ collection_params = { ** experiment .get ("collection_params" , {})} ,
34+ connection_params = { ** experiment .get ("connection_params" , {})} ,
3635 )
3736 return engine_configurator
3837
3938 def _create_uploader (self , experiment ) -> BaseUploader :
4039 engine_uploader_class = ENGINE_UPLOADERS [experiment ["engine" ]]
4140 engine_uploader = engine_uploader_class (
4241 self .host ,
43- experiment .get ("connection_params" , {}),
44- experiment .get ("upload_params" , {}),
42+ connection_params = { ** experiment .get ("connection_params" , {})} ,
43+ upload_params = { ** experiment .get ("upload_params" , {})} ,
4544 )
4645 return engine_uploader
4746
@@ -51,7 +50,7 @@ def _create_searchers(self, experiment) -> List[BaseSearcher]:
5150 engine_searchers = [
5251 engine_searcher_class (
5352 self .host ,
54- connection_params = experiment .get ("connection_params" , {}),
53+ connection_params = { ** experiment .get ("connection_params" , {})} ,
5554 search_params = search_params ,
5655 )
5756 for search_params in experiment .get ("search_params" , [{}])
0 commit comments