You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When filtering out supported claims, this line assumes that concurrent.futures.as_completed() maintains order, which it does not, since it is zipping the claims as originally ordered with the future results as they are returned.
This means that a claim can be incorrectly identified as supported if subsequent calls made in _inference_remote return out of order (i.e. one request takes longer than another made after it).
See contrived code sample below for a simplified example:
One solution would be to return a composite response from _inference_remote that includes both the original claim and the FactcheckCreateResponse for that claim.
The text was updated successfully, but these errors were encountered:
When filtering out supported claims, this line assumes that
concurrent.futures.as_completed()
maintains order, which it does not, since it is zipping the claims as originally ordered with the future results as they are returned.This means that a claim can be incorrectly identified as supported if subsequent calls made in
_inference_remote
return out of order (i.e. one request takes longer than another made after it).See contrived code sample below for a simplified example:
One solution would be to return a composite response from
_inference_remote
that includes both the original claim and theFactcheckCreateResponse
for that claim.The text was updated successfully, but these errors were encountered: