Skip to content

Commit

Permalink
fix: remove metadata filter fallback (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Jun 22, 2024
1 parent dcb3512 commit 3100f08
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ export class MetadataPostFilter implements BaseNodePostprocessor {
const filteredNodes = await this.filterNodes(nodes, filters);
console.log(`[Metadata Filter] Applied provided/generated filter (before: ${nodes.length} nodes, after: ${filteredNodes.length} nodes).`);

if (filteredNodes.length === 0) {
console.warn('[Metadata Filter] No nodes left after filtering, fallback to using all nodes.');
return nodes;
}

return filteredNodes;
}

Expand Down

0 comments on commit 3100f08

Please sign in to comment.