-
Notifications
You must be signed in to change notification settings - Fork 300
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: allow kwargs in init for RerankingWrapper #1676
Conversation
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.
The command mentioned in the issue was mteb run -m jhu-clsp/FollowIR-7B -t TwitterHjerneRetrieval
. Could you please run it and see whether the same error still shows up?
I tried running
|
@orionw Can you look to the changes? |
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.
Sorry for the delay, got lost in my inbox. Looks great to me, thanks for cleaning up so many of my previous errors/typos.
@@ -43,7 +43,7 @@ def corpus_to_str( | |||
else corpus["text"][i].strip() | |||
for i in range(len(corpus["text"])) | |||
] | |||
elif isinstance(corpus, list) and isinstance(corpus[0], dict): |
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.
What is the tuple again? I'm sure it's obvious but I am blanking
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.
I think I added this to convert corpus_in_pair
corpus_in_pair = corpus_to_str(corpus_in_pair) |
I can check it tomorrow
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.
Yes, this part was causing problems converted it to list
Checklist
make test
.make lint
.Closes #1671
RerankingWrapper
didn’t account for it.None
is appended to the end of the query.predict
function initially expectedquery
,passage
, andinstruction
every time, but now it checks the number of parameters passed.