SmartSearch is an advanced AI-powered search system that breaks down complex queries into manageable sub-questions, searches for information, and synthesizes comprehensive answers.
- Complex query decomposition
- Intelligent web searching
- Dynamic information synthesis
- Multi-agent collaboration
- Query Decomposition: The Planner agent breaks down the main query into sub-questions.
- Web Search: The Search agent performs web searches for each sub-question.
- Information Analysis: The Reflection agent analyzes search results and determines if more information is needed.
- Answer Synthesis: Once sufficient information is gathered, a final comprehensive answer is generated.
- Clone the repository: git clone https://github.com/531619091/smart_search.git
- Install the required packages: pip install -r requirements.txt
- Set up your OpenAI API key as an environment variable: export OPENAI_API_KEY='your-api-key-here'
Run the main script: python smart_search.py
Adjust the max_turn
parameter in the MindSearch
class to control the maximum number of search iterations.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.