File size: 3,935 Bytes
46cbd5f
bacd4c8
46cbd5f
 
 
 
31c582a
46cbd5f
 
98e8a6c
 
31c582a
98e8a6c
31c582a
 
46cbd5f
 
 
68b80a4
944369f
98e8a6c
68b80a4
 
c7b3082
 
944369f
68b80a4
944369f
 
 
 
 
 
68b80a4
944369f
 
 
 
 
 
68b80a4
944369f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68b80a4
 
 
 
 
944369f
68b80a4
 
0987f1e
 
 
 
68b80a4
 
944369f
68b80a4
 
 
 
 
 
944369f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68b80a4
944369f
68b80a4
944369f
 
 
68b80a4
944369f
68b80a4
31c582a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
title: DeepSearch
emoji: 😻
colorFrom: yellow
colorTo: blue
sdk: gradio
sdk_version: 5.33.1
app_file: app.py
pinned: false
short_description: performs comprehensive research on any query.
tags:
- mcp-server-track
contributors:
- LokeshReddy001
- suchith-koduru
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

demo-link: https://drive.google.com/file/d/1Xrj-5z2tcJYq124wlJndcJbVjHmP_Jos/view?usp=sharing

# Deep Research Assistant

Design of the agent is in the following [tldraw link](https://www.tldraw.com/f/ZCoiik0AvCCeCx2GOlqf6?d=v2200.-4065.1101.733.ADvUOyPQU3xs8HDV8iUjG)

An advanced AI-powered research assistant that performs comprehensive analysis and generates detailed reports on any topic. Built with Gradio and powered by Cerebras AI, Google search engine API.

## πŸŽ₯ Demo Video
<div align="center">
  <a href="https://drive.google.com/file/d/1Xrj-5z2tcJYq124wlJndcJbVjHmP_Jos/view?usp=sharing">
    <img src="https://img.shields.io/badge/Watch%20Demo-Video-red?style=for-the-badge&logo=youtube" alt="Watch Demo Video"/>
  </a>
</div>

## πŸš€ Try It Live
<div align="center">
  <a href="https://huggingface.co/spaces/suchith-koduru/deepsearch">
    <img src="https://img.shields.io/badge/πŸ€—%20Open%20In%20Spaces-blue?style=for-the-badge" alt="Open in Spaces"/>
  </a>
</div>

## 🌟 Features

- **Comprehensive Research**: Performs deep analysis using multiple research tools and AI models
- **Structured Reports**: Generates well-organized reports with:
  - Executive Summary
  - Main Findings with supporting details
  - In-depth Analysis
  - Clear Conclusions
  - Source Citations
- **Real-time Processing**: Get research results in real-time with live progress updates
- **User-friendly Interface**: Simple, clean Gradio interface for easy interaction
- **Markdown Support**: Results are formatted in clean, readable markdown

## πŸ› οΈ Setup

1. Clone the repository:
   ```bash
   git clone https://github.com/YourUsername/deepsearch.git
   cd deepsearch
   ```

2. Install dependencies:
   ```bash
   pip install -r requirements.txt
   ```

3. Create a `.env` file in the root directory with your API key:
   ```
   GOOGLE_API_KEY="<get api key from https://console.cloud.google.com/apis/credentials>"
   GOOGLE_CSE_ID="<get cse id from https://programmablesearchengine.google.com/controlpanel/all>"
   CEREBRAS_API_KEY="<get api key from https://cloud.cerebras.ai/>"
   FIRECRAWL_API_KEY="<get api key from https://www.firecrawl.dev/app/api-keys>"
   ```

## πŸƒβ€β™‚οΈ Running Locally

1. Start the Gradio web interface:
   ```bash
   python app.py
   ```
2. Open your web browser and navigate to the URL shown in the terminal (typically http://localhost:7860)
3. Enter your research query and click submit

## πŸ“ Example Queries

The application works best with specific, focused queries. Here are some examples:
- "What are the latest developments in quantum computing?"
- "Explain the current state of climate change and its impacts"
- "What are the emerging trends in artificial intelligence?"

## πŸ” How It Works

1. **Query Refinement**: Your input is analyzed and structured into a comprehensive research query
2. **Research Phase**: Multiple tools are used to gather and analyze information:
   - Web searching for recent information
   - Content scraping for detailed analysis
   - Text summarization for key points
3. **Report Generation**: Results are compiled into a structured report with:
   - Executive Summary
   - Main Findings
   - Detailed Analysis
   - Conclusions
   - Source Citations

## ⚠️ Important Notes

- Requires valid API keys for all services (Google Search, Cerebras AI, Firecrawl)
- Some queries may take a few minutes to process depending on complexity
- Internet connection required for real-time research

## 🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.