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 UI when API returns fewer answers than expected #828

Merged
merged 2 commits into from
Feb 15, 2021
Merged

Fix UI when API returns fewer answers than expected #828

merged 2 commits into from
Feb 15, 2021

Conversation

tholor
Copy link
Member

@tholor tholor commented Feb 15, 2021

Problem occured on datasets with short docs. When putting the slider for top_k_reader to a high value (e.g. 10), while keeping top_k_retriever low (e.g. 1) the API returned less than the 10 expected answers and the UI crashed. Handled this case now + exposed a env variable for top_k_per_sample. We should further simplify this handling in #817

@tholor tholor merged commit 0eaae3c into master Feb 15, 2021
@tholor tholor deleted the fix_ui branch February 15, 2021 13:27
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.

None yet

2 participants