Skip to content

Commit

Permalink
NIFI-13759 Fix if statement, so it not throws error, if you not speci…
Browse files Browse the repository at this point in the history
…fy filter parameter
  • Loading branch information
taz1988 authored and Zoltan Kornel Torok committed Nov 13, 2024
1 parent afe8b3c commit dd7427b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/vectorstores/QueryQdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit dd7427b

Please sign in to comment.