-
Notifications
You must be signed in to change notification settings - Fork 591
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
Add topk functionality to qa pipeline #480
Conversation
Additionally, to get ibuprofen as a returned answer, as the issue in #406 discusses, the prompt needed to be changed. context = ["The doctor administered a 7g dose of Acetarsol and a 16mg dose of Ibuprofen",
"The patient took one Alosetron tablet"]
queries = ["What is the specific drug taken?", "What is the dose?"] versus: context = ["The doctor administered a 7g dose of Acetarsol and a 16mg dose of Ibuprofen",
"The patient took one Alosetron tablet"]
queries = ["What is the drug taken?", "What is the dose?"]``` |
Thanks for taking on this issue! Couple initial things.
|
Hi David, I ran both of those a few weeks back when I initially cloned the repo. I just ran again to be certain and make data returned:
However, make coverage runs with some errors.
|
Hi Ryan, I just checked in a change that should show a better message when In terms of backwards compatibility, if the tests run without errors, then we should be good to go. |
I just ran
Was this what you were referring to before or was that in a different case? |
It appears you're running into this macOS issue: #377 I've long wanted to solve it but I don't develop on macOS. From other discussions, it appears it's some sort of library conflict (see this: #300 (comment)). Perhaps you could try to install/configure/change the OpenMP install to see if that helps? What version of Python and PyTorch are you using locally? |
Hi Ryan, With the summer coming to a close, I assume you didn't get time to come back around on this. Where do you think this stands? Is what you submitted complete or should I close this? |
Closing this due to inactivity. Feel free to re-open should there be future interest in completing this work. |
This is my first attempt. I'm having some trouble representing the data in a df as shown in #406. I also noticed that that code was borrowed from https://github.com/neuml/txtai/blob/master/examples/20_Extractive_QA_to_build_structured_data.ipynb so I assume this first attempt will need some work if that is the intended output.