The Deeper seeker is a simpler OSS version of Deep Research launched by OpenAI. It is a tool designed to perform comprehensive market research, competitor analysis, and investment memo preparation.
The tool is built to:
- Conduct iterative research with continuous refinement.
- Generate structured search queries and analyze results.
- Produce well-formatted, actionable reports tailored to user queries.
-
Iterative Research Workflow:
- Plans research steps based on user queries.
- Generates precise search queries using the Exa API.
- Continuously refines research based on findings.
-
Structured Output:
- Produces JSON-structured search queries for API calls.
- Formats search results with highlights, citations, and summaries.
-
Comprehensive Reporting:
- Synthesizes research findings into actionable reports.
- Includes reasoning, plans, and link counts for transparency.
-
Customizable Queries:
- Handles simple to complex research tasks, including:
- Market research and sizing.
- Competitor analysis.
- Investment memo preparation.
- Handles simple to complex research tasks, including:
-
User Query:
- The user provides a research query (e.g., "Analyze the global EV market in 2024").
-
Research Planning:
- The AI creates a research plan, including reasoning and search queries.
-
Search Execution:
- The tool uses the Exa API to search the web for relevant information.
-
Result Processing:
- Search results are processed, formatted, and analyzed.
-
Iterative Refinement:
- The AI evaluates the results, refines the plan, and performs additional searches if needed.
-
Final Report:
- All findings are synthesized into a comprehensive, well-formatted report.
-
Clone the repository:
git clone https://github.com/yourusername/deep-research-assistant.git cd deep-research-assistant
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.env
file and add your API keys:EXA_API_KEY=your_exa_api_key OPENAI_API_KEY=your_openai_api_key
- Create a
-
Run the script:
python main.py
-
Enter your research query when prompted:
Enter your query: Analyze the competitive landscape of the cloud computing industry.
-
View the research process and final report:
- The tool will display reasoning, plans, search results, and link counts for each iteration.
- The final report will be printed in the console.
Here are some sample queries to test the tool:
-
Market Research:
- "Provide an overview of the global electric vehicle (EV) market in 2024."
- "What are the current trends in the plant-based food industry?"
-
Competitor Analysis:
- "Compare Tesla and Rivian in terms of market share and product offerings."
- "Analyze the competitive landscape of the cloud computing industry."
-
Investment Memo Prep:
- "Prepare a brief investment memo for a fintech startup specializing in blockchain-based payments."
- "Evaluate the investment potential of the renewable energy sector."
main.py
: Main script for running the research assistant.exa_search()
: Function to query the Exa API for search results.generate_research_step()
: Function to create research plans and queries using OpenAI.process_search_results()
: Function to format and analyze search results.ResearchAgent
: Class to manage the iterative research process.
- Python 3.8+
- Libraries:
openai
: For AI-powered reasoning and planning.requests
: For making API calls to Exa.colorama
: For colored console output.pydantic
: For data validation.
- Exa API Key: Required for web search functionality. Sign up at Exa AI.
- OpenAI API Key: Required for AI reasoning and planning. Sign up at OpenAI.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Submit a pull request with a detailed description of your changes.
- Exa AI: For providing the web search API.
- OpenAI: For powering the AI reasoning and planning capabilities.
- Improve reasoning and task planning
- Enhance the web content extraction with firecrawl.
- Add support for additional data sources.
- Implement a web-based interface for easier interaction.
- Enable export of reports in multiple formats (PDF, Markdown, etc.).
- Add advanced analytics and visualization capabilities.
Happy researching! 🚀