-
It's better to make a external request, example getting order or collect customer data. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
🤖 Yes, the Conversational Retrieval QA Chain does support the use of custom tools for making external requests such as getting orders or collecting customer data. This is possible through the use of the Here is an example of how you can initialize the // Initialize the remote retriever.
const retriever = new RemoteLangChainRetriever({
url: "http://0.0.0.0:8080/retrieve", // Replace with your own URL.
auth: { bearer: "foo" }, // Replace with your own auth.
inputKey: "message",
responseKey: "response",
}); In this example, the The Therefore, you can use custom tools for making external requests such as getting orders or collecting customer data, as long as you can configure them to work with the For more details, you can refer to the source code of the Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
🤖
Yes, the Conversational Retrieval QA Chain does support the use of custom tools for making external requests such as getting orders or collecting customer data. This is possible through the use of the
RemoteLangChainRetriever
class, which is designed to retrieve documents from a remote source using a JSON-based API.Here is an example of how you can initialize the
RemoteLangChainRetriever
:In this example, the
RemoteLangChain…