Skip to content

Commit

Permalink
fix: fix match_all_filters wrong check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Aug 1, 2024
1 parent 9737d20 commit 68d2a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/rag/node_postprocessor/metadata_post_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _postprocess_nodes(
return filtered_nodes

def match_all_filters(self, node: Any) -> bool:
if self.filters is None or not isinstance(node, MetadataFilters):
if self.filters is None or not isinstance(self.filters, MetadataFilters):
return True

if self.filters.condition != FilterCondition.AND:
Expand Down

0 comments on commit 68d2a05

Please sign in to comment.