Skip to content

Wise to call outside API on custom node? #2499

Discussion options

You must be logged in to vote

Hi @rezatakhshid that's a great question! Your idea should in general work. You could implement a custom node that communicates with an API, yes. Our documentation page about custom nodes will be helpful for that.
The downsides that I can think of are first of all latency and also some limitations on the responses you get back from the API compared to the answers you get from FARMReader. For example, with a FARMReader you can have calibrated confidence scores and you can use the evaluation functionalities of Haystack. That won't be possible otherwise. And while a custom node that communicates with an external API gives you the advantage that you would not need to host a reader model yours…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rezatakhshid
Comment options

Answer selected by rezatakhshid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants