Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change top_n if number of input nodes are less #17374

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Change top_n if number of input nodes are less
SuperSecureHuman committed Dec 26, 2024

Verified

This commit was signed with the committer’s verified signature.
SuperSecureHuman Dilip Parasu
commit 52dafb9cacb52908dc7eaac9a9d49344f5599f04
Original file line number Diff line number Diff line change
@@ -208,6 +208,9 @@ def _postprocess_nodes(
},
}
)
# change top_n if the number of nodes is less than top_n
if len(nodes) < self.top_n:
self.top_n = len(nodes)

queries = [
{