-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Clean Upvote and Downvote data #3611
Conversation
Will grab all the upvotes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CodingWithTim left some comments
@infwinston Suggestions integrated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a critical thing should be fixed. chunk_size
shouldn't be 1 otherwise we will introduce lots of overhead and it might be even slower than sequential implementation.
# Aggregate results from child processes | ||
ct_invalid_conv_id = sum( | ||
[data["ct_invalid_conv_id"] for data in results if "ct_invalid_conv_id" in data] | ||
) | ||
ct_invalid = sum([data["ct_invalid"] for data in results if "ct_invalid" in data]) | ||
ct_network_error = sum( | ||
[data["ct_network_error"] for data in results if "ct_network_error" in data] | ||
) | ||
all_models = set([data["model"] for data in results if "model" in data]) | ||
chats = [data["result"] for data in results if "result" in data] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we merge into one for loop?
Why are these changes needed?
Related issue number (if applicable)
Checks
format.sh
to lint the changes in this PR.