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

Fix/bing retriever consistency #944

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

ibuder
Copy link
Contributor

@ibuder ibuder commented Oct 23, 2024

This fixes an inconsistency in the return type of the Bing retriever.

It could return a list or None. However, the calling code assumed the result was always a list. As a result, the entire researcher would fail if the Bing retriever reached any code path that returned None.

This PR makes the Bing retriever always return a list, consistent with other retrievers.

@ibuder ibuder marked this pull request as ready for review October 23, 2024 23:26
Copy link
Owner

@assafelovic assafelovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks super helpful!

@assafelovic assafelovic merged commit 5a0fc2d into assafelovic:master Oct 24, 2024
@ibuder ibuder deleted the fix/bing-retriever-consistency branch October 24, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants