Wise to call outside API on custom node? #2499
-
Hi, I did see this Outsourcing Reader but it didn't answer my question. I would appreciate some insight |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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 aFARMReader
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…