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
trec_eval (and by extension pytrec_eval) works by sorting the docids by the scores you provide (descending). If you want a specific order, you can manipulate the scores in a way that gives the desired effect.
Do you think it would be helpful to allow providing a list of docids instead of a dict, and using that order?
I am using
Now result is
{qid: {docid: embeddding_score, docid: embeddding_score} }
so we sort the results using scores before using for metrics calculation? I am assuming it has to be as dict will not have fix indexing.
can we avoid this sorting? in that case do I have to manipulate the scores manually to achieve desired results?
The text was updated successfully, but these errors were encountered: