Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Alternative Internet search APIs #699

Open
1 of 2 tasks
kumatheworld opened this issue Jan 26, 2025 · 1 comment
Open
1 of 2 tasks

[Feature Request] Alternative Internet search APIs #699

kumatheworld opened this issue Jan 26, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@kumatheworld
Copy link

Describe the solution you'd like

Allow users to select from multiple search API options or input their own API credentials during app deployment or via a configuration interface post-deployment.

Why the solution needed

It appears that the Internet search feature stops working completely when you hit the DuckDuckGo search API limit. Although this potential rate limit error is mentioned in the documentation, it would be best if users can choose search APIs when they build the app or even after deploying it. This would not only help avoid service interruption due to rate limits but also allow users to choose APIs that best fit their needs in terms of search results quality, privacy considerations, or existing API subscriptions.

Additional context

Currently, Internet search is handled by internet_search.py, in which the DuckDuckGo search API is hardcoded. I confirmed that modifying the internet_search() function with SerpAPI worked as well.

Implementation feasibility

Are you willing to collaborate with us to discuss the solution, decide on the approach, and assist with the implementation?

  • Yes, I am able to implement the feature and create a pull request.
  • No, I am unable to implement the feature, but I am open to discussing the solution.
@kumatheworld
Copy link
Author

I tested the following with v2.0.0. Now that the return value type of internet_search() changed since then, it might not be as straight forward to use another search API.

I confirmed that modifying the internet_search() function with SerpAPI worked as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants