Spaces:
Sleeping
Sleeping
Vasilii Tokarev
Merge pull request #2 from serverdaun/codex/implement-chat-based-ui-with-system-messages
9276b00
unverified
A newer version of the Gradio SDK is available:
6.1.0
metadata
title: Deep Research
emoji: π
colorFrom: red
colorTo: green
sdk: gradio
sdk_version: 5.34.0
app_file: src/main.py
pinned: false
license: apache-2.0
Deep Research
Deep Research is an AI-powered research assistant that helps users investigate complex topics by generating clarifying questions, planning web searches, and synthesizing detailed markdown reports.
Features
- Clarification: Asks targeted questions to refine the research query.
- Planning: Suggests up to five web searches to address the query.
- Web Search: Summarizes web results for each planned search.
- Report Generation: Produces a comprehensive markdown report with a summary and follow-up questions.
- Interactive UI: Chat-based Gradio interface for end-to-end research.
Usage
- Send your research topic in the chat box.
- Answer the clarifying questions.
- Receive the detailed report back in the same conversation.
Tech Stack
- Python, Gradio
- openai-agents (for agent orchestration)
- Async/await for non-blocking operations
File Overview
main.pyβ Gradio UI and app entry pointresearch_manager.pyβ Orchestrates the research workflowresearch_agent.pyβ Core agent logic and tool coordinationclarifier.pyβ Generates clarifying questionsplanner.pyβ Plans web search queriesweb_search.pyβ Summarizes web search resultsreport_generator.pyβ Creates the final markdown report
Setup (with uv)
- Install Python 3.12 (if not already installed).
- Install uv:
pip install uv - Create enviroment and install dependencies:
uv sync - Activate the enviroment
source .venv/bin/activate #.venv/Scripts/activate on Win - Run the app:
uv run src/main.py
The app will launch a Gradio interface that you can access in your browser.