-
I have created a retrieval QA chain 1. This is create by embedding+splitting PDF 1 into a vector DB and using the retrieval QA chain to get relevant answers. Id like the response to contain tthe outputs of both QA chains if possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You could accomplish this by wrapping everything into a Custom Tool and using that Custom Tool in your Chat agent. You'd take the input from the user and pass that to the Custom Tool. The Custom Tool would then call the first QA chain via the API and use the results of that to then call the second QA chain via the API. The Custom Tool would then return the results of both API calls. Hope that helps. |
Beta Was this translation helpful? Give feedback.
You could accomplish this by wrapping everything into a Custom Tool and using that Custom Tool in your Chat agent. You'd take the input from the user and pass that to the Custom Tool. The Custom Tool would then call the first QA chain via the API and use the results of that to then call the second QA chain via the API. The Custom Tool would then return the results of both API calls. Hope that helps.