haystack icon indicating copy to clipboard operation
haystack copied to clipboard

Add Bing Search API node, a.k.a. BingSearchComponent

Open danielbichuetti opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. When users question something that is not directly related to their or our internal document store, we use the Bing Search API to collect some information and try to give a good result to the user. I'd like to add this as a node so we can integrate it into Haystack Pipeline.

Describe the solution you'd like Add a BingSearchComponent that will get a query and return a list of documents using Bing ranking.

Describe alternatives you've considered Code outside of the framework and integrate with external services.

Additional context Usually used to answer questions about general concepts.

UPDATE: This component will, also, be useful for future MRKLAgent

danielbichuetti avatar Jan 30 '23 17:01 danielbichuetti

@danielbichuetti thanks for raising this issue. We intend to support Bing via https://serpapi.com/ Does SerpAPI satisfy this feature request?

vblagoje avatar Jan 30 '23 18:01 vblagoje

Hi @vblagoje

As we are part of Microsoft for Startups, it would be better for us to use it on production (large scale deployment costs) . I can implement the node using requests, so no extra dependency.

danielbichuetti avatar Jan 30 '23 19:01 danielbichuetti

Ok cool, lets see if we can create some common components for both, perhaps even reuse them further in other third party APIs. Let me get back to you after I run this by my team tomorrow.

vblagoje avatar Jan 30 '23 19:01 vblagoje

@vblagoje is this safe to close since we do support the BingAPI through the WebRetriever? https://github.com/deepset-ai/haystack/blob/4265c7cd51ed3ad26e2de7a8726dc8fccce066e1/haystack/nodes/retriever/web.py#L28

sjrl avatar Feb 16 '24 08:02 sjrl