serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
45 stars 3 forks source link

Add integration of OpenAI ChatGPT fallback missing answer box #555

Open jenskastensson opened 1 year ago

jenskastensson commented 1 year ago

Use case: Search by voice, Google answer box is handy but often missing. Fall back to ChatGPT

aliayar commented 1 year ago

Instead of creating a fallback option for Google Search API Answer Box, we could create a QA (Questions & Answers API) which could use Google Answer Box and fallback to ChatGPT or NeevaAI whenever there is no Answer Box.

This would also ensure that we keep our promise about Google Search API working solely as a scraping solution and we don't meddle with results.

What do you guys think?

jenskastensson commented 1 year ago

I think this sounds great, the perfect API for a voice application! Here are some sample queries that would be great to be able to support

ilyazub commented 1 year ago

@jenskastensson Thanks for your feature request! It's an excellent opportunity for us to share demo projects that combine OpenAI API with SerpApi.

The ChatGPT integration is out of scope of the SerpApi mission. Instead, OpenAI API can be combined with SerpApi. (ChatGPT uses text-davinci-003 model from OpenAI API.)

Two examples of OpenAI API with SerpApi:

  1. An app to summarize Google Search Results snippets using OpenAI API: https://mobile.twitter.com/serp_api/status/1603710968118546435
  2. A proof of concept that combines SerpApi with OpenAI API by @hwchase17: https://github.com/hwchase17/langchain/issues/289#issue-1486171161

@jenskastensson, I'll be happy to pair program with you on the voice application prototype. Let me know what do you think.

jenskastensson commented 1 year ago

Thanks @ilyazub , this looks very interesting. I will need some time to digest !

ilyazub commented 1 year ago

Here are other examples of usage of API from Open AI and SerpApi:

SerpApi + other ML APIs