From 8e6e0fcb3c26d269ccede0c475a702c2c66d926b Mon Sep 17 00:00:00 2001 From: ilai Date: Sun, 29 Oct 2023 13:50:46 +0200 Subject: [PATCH] TEMP! trying to cause conflict --- src/canopy/knowledge_base/knowledge_base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/canopy/knowledge_base/knowledge_base.py b/src/canopy/knowledge_base/knowledge_base.py index 4d0c5ae2..76257365 100644 --- a/src/canopy/knowledge_base/knowledge_base.py +++ b/src/canopy/knowledge_base/knowledge_base.py @@ -433,11 +433,11 @@ def _query_index(self, if self._index is None: raise RuntimeError(self._connection_error_msg) - metadata_filter = deepcopy(query.metadata_filter) + filter = deepcopy(query.metadata_filter) if global_metadata_filter is not None: - if metadata_filter is None: - metadata_filter = {} - metadata_filter.update(global_metadata_filter) + if filter is None: + filter = {} + filter.update(global_metadata_filter) top_k = query.top_k if query.top_k else self._default_top_k query_params = deepcopy(query.query_params) @@ -446,7 +446,7 @@ def _query_index(self, sparse_vector=query.sparse_values, top_k=top_k, namespace=query.namespace, - metadata_filter=metadata_filter, + metadata_filter=filter, include_metadata=True, _check_return_type=_check_return_type, **query_params)