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

Web_search tools #8

Merged
merged 7 commits into from
Feb 4, 2025
Merged

Conversation

harshalmore31
Copy link
Contributor

This pull request introduces several new features and improvements related to web search functionalities. The most significant changes include the addition of search capabilities using Exa.ai, SerpAPI, and Tavily, as well as a comprehensive web search module with enhanced content extraction and formatting.

New Search Capabilities:

  • Exa.ai Integration:

    • Added exa_search function to perform web searches using the Exa.ai API and format the results.
  • SerpAPI Integration:

    • Implemented serpapi_search function to utilize SerpAPI for Google searches and format the results.
  • Tavily Integration:

    • Developed tavily_search function to perform searches using the Tavily API and format the results.
  • Web Search:

    • Implemented web search locally with google indexing without an Agent

Web Search Module Enhancements:

  • Lazy Loading and Improved Content Extraction:

    • Introduced WebSearch class with lazy loading of required packages, improved HTML preprocessing, and hybrid content extraction methods.
  • Environment Configuration:

    • Added new environment variables for Google API key and custom search engine ID in .env.example.

@kyegomez kyegomez merged commit 70f88ba into The-Swarm-Corporation:main Feb 4, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants