-
Notifications
You must be signed in to change notification settings - Fork 563
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
Extractive QA with multiple answers #406
Comments
Thank you for taking the time to submit an issue. Currently, the Questions pipeline only supports returning the top answer. But the underlying Hugging Face pipeline supports multiple answers using the See this link for more: huggingface/transformers#3207 It would be a fairly straightforward change to add this to txtai |
Thank you for your answer. Once again a very good work and the documentation is very rich :) |
Thank you. The comment here: huggingface/transformers#3207 (comment) Has an example on how to apply the topk parameter and return multiple results. |
Can this work for sagemaker? Actually I am trying to deploy this pipeline in sagemaker, how can we customize the topk parameter in that? (As Sagemaker works a bit differently), Sagemaker currently returns only 1 answer, and am unable to modify the parameters to increase the number of returned items. Thank you. This is my model and pipeline setup in Sagemaker: |
Unfortunately, I'm not too familiar with the Hugging Face SageMaker interface. The Hugging Face team may be able to help on that one. I'd take a look at asking here - https://discuss.huggingface.co/ |
@SamPse This is a bit dated, but I'd like to implement this in a future PR. Do you mind providing your full code? Thanks! |
Keeping this issue open, still a good issue to consider. |
Hello, I am new to txtai and I want to know if I can have a list of results with the QA approach.
My code is:
I would like to have this result.
thank you for your help
The text was updated successfully, but these errors were encountered: