storm icon indicating copy to clipboard operation
storm copied to clipboard

Support DuckDuckGoSearchAPI and TavilySearchAPI as Alternatives to You.com

Open songkq opened this issue 2 months ago • 2 comments

  1. Support DuckDuckGoSearchAPI and TavilySearchAPI as Alternatives to You.com.
  2. When enabling TopicExpert to use DuckDuckGoSearchAPI or TavilySearchAPI, these APIs will return compelete contents instead of snippets as default.
  3. One can setup the search API through editing these environments in secrets.toml: Set WEB_SEARCH_API as one of ['DuckDuckGoSearchAPI', 'TavilySearchAPI', 'YouSearchAPI'], using YouSearchAPI as default Setup You.com search API key by YDC_API_KEY=<your_youcom_api_key> Setup api.tavily.com search API key by TAVILY_API_KEY=<your_api_tavily_com_key>

songkq avatar Apr 16 '24 13:04 songkq

Thanks for the effort! We will test this on our side first.

Also, we plan to have a major update to this open-source repo to make it easier to customize or build on top of STORM in the upcoming weeks. We may back up the current branch and directly merge different source support there. Will keep you posted in this PR thread.

shaoyijia avatar Apr 16 '24 16:04 shaoyijia

Thanks for your effort! After running your version, I finnally got the result, but there still have some errors, the openai refuse connection after a while," raise error.APIConnectionError( openai.error.APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))"

Have you ever consider change the model to llama3 run by ollama?

leonstd2015 avatar Apr 21 '24 07:04 leonstd2015