-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Combine FAQ and extractive QA Pipelines #902
Comments
Hey @F95GIT , Sure, that's possible. It should work pretty similarly to the "multiple retriever examples" in the docs.
However, I just realized, that the FAQPipeline has one extra step needed to convert the retrieved documents into proper "answers" (see code here). This is needed, as both branches in the pipeline need to pass lists of I guess you already saw those, but maybe it's helpful for others who read this: here are the exemplary code snippets for the retriever pipelines in our docs: https://haystack.deepset.ai/docs/latest/pipelinesmd#Multiple-retrievers Let me know if you have any further questions on this! |
@tholor thank you for your detailed answer. |
@tholor is Document2Answer class available? |
Nope. You are right this would still be necessary for your case in #1081. Would you be interested in raising a pull request for it? I can help you with the implementation if needed. Should be rather straight forward... |
@tholor I will try to do PR for that. You have mentioned JoinAnswers class as well. Both Document2Answer and JoinAnswers should be implemented right? |
Hi,
I understand from your docs, that it's possible to combine several retrievers and join their results.
Is it also possible to combine the extractive QA pipeline and the FAQ pipeline?
I would like to achieve something similar to this: if a certain term "XY" is included in the query use the FAQ pipeline, if not use the extractive QA pipeline.
Or even better: run the query in both pipelines, join the results and return the most relevant results.
If this is possible, could you please give me a pointer on how to do this?
Thank you!
The text was updated successfully, but these errors were encountered: