From 2940bead48ae89d836c18f0853f1ded6c3d7b77a Mon Sep 17 00:00:00 2001 From: Zoltan Kornel Torok Date: Wed, 18 Sep 2024 14:33:55 +0200 Subject: [PATCH] NIFI-13759 Fix if statement, so it not throws error, if you not specify filter parameter --- src/extensions/vectorstores/QueryQdrant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/vectorstores/QueryQdrant.py b/src/extensions/vectorstores/QueryQdrant.py index a7a63e3..b064284 100644 --- a/src/extensions/vectorstores/QueryQdrant.py +++ b/src/extensions/vectorstores/QueryQdrant.py @@ -132,7 +132,7 @@ def transform(self, context, flowfile): results = vector_store.similarity_search_with_score( query=query, k=num_results, - filter=None if filter is None else json.loads(filter_definition), + filter=None if filter_definition is None else json.loads(filter_definition), ) documents = []