Skip to content

Do Conversational Retrieval QA Chain support custom tool? #2747

Answered by dosubot bot
kientv asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

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:

// 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 RemoteLangChain…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kientv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant