File size: 5,442 Bytes
0604037
 
 
 
 
 
 
 
 
 
 
 
6af1bca
0604037
6af1bca
 
0604037
6af1bca
 
 
 
0604037
6af1bca
0604037
6af1bca
0604037
6af1bca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0604037
 
 
 
 
 
 
 
6af1bca
0604037
 
 
 
 
6af1bca
0604037
 
 
 
 
6af1bca
 
 
 
0604037
 
 
 
 
 
6af1bca
 
 
 
 
0604037
 
 
 
 
6af1bca
 
 
 
 
0604037
 
 
 
 
6af1bca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0604037
6af1bca
0604037
6af1bca
0604037
6af1bca
0604037
6af1bca
 
 
 
0604037
6af1bca
0604037
6af1bca
0604037
6af1bca
 
 
0604037
6af1bca
 
 
 
0604037
6af1bca
 
 
 
 
 
 
 
 
 
 
 
 
0604037
6af1bca
 
 
 
0604037
6af1bca
 
 
0604037
6af1bca
0604037
6af1bca
0604037
6af1bca
0604037
6af1bca
0604037
 
 
 
6af1bca
0604037
 
 
 
6af1bca
0604037
6af1bca
0604037
6af1bca
 
0604037
 
 
6af1bca
0604037
 
 
 
6af1bca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0604037
6af1bca
 
 
0604037
6af1bca
0604037
6af1bca
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
---
title: Omniscient
emoji: ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ
colorFrom: indigo
colorTo: purple
sdk: streamlit
python_version: 3.11
sdk_version: "1.35.0"
app_file: app.py
pinned: false
---

<div align="center">

# ๐Ÿง  Omniscient 
### *"The all-knowing AI that sees everything, knows everything"*

[![Python](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://python.org)
[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![Streamlit](https://img.shields.io/badge/Streamlit-1.35.0-red.svg)](https://streamlit.io)
[![HuggingFace](https://img.shields.io/badge/๐Ÿค—%20HuggingFace-Space-yellow.svg)](https://huggingface.co/spaces/Omniscient001/Omniscient)

*A versatile AI bot for image analysis and dataset curation with support for multiple AI models*

๐ŸŽฎ **[Try it Live on HuggingFace!](https://huggingface.co/spaces/Omniscient001/Omniscient)** *(Actively WIP)*

</div>

---

## โœจ Features

<table>
<tr>
<td width="50%">

### ๐Ÿ—ƒ๏ธ **Dataset Curation**
Generate and curate high-quality image datasets with intelligent filtering and categorization.

### ๐Ÿ” **Single Image Analysis** 
Benchmark different AI models on individual images with detailed performance metrics.

</td>
<td width="50%">

### ๐Ÿค– **Agentic Analysis**
Multi-step AI reasoning and analysis with advanced decision-making capabilities.

### ๐ŸŒ **Multiple AI Providers**
Seamless integration with OpenAI, Anthropic, and Google AI platforms.

</td>
</tr>
</table>

---

## ๐Ÿš€ Quick Start

### ๐Ÿ“‹ **Step 1: Setup Environment**

```bash
cd simple_G_ai_bot
```

Create a `.env` file in the project root:

```bash
# ๐Ÿ” .env
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
```

### ๐Ÿ“ฆ **Step 2: Install Dependencies**

```bash
uv sync
```

### ๐ŸŽฏ **Step 3: Usage Examples**

<details>
<summary><b>๐Ÿ—๏ธ Dataset Curation</b></summary>

Generate 50 urban outdoor samples:
```bash
python main.py --mode data --samples 50 --urban --no-indoor
```

</details>

<details>
<summary><b>โšก Single Image Analysis</b></summary>

Benchmark GPT-4o on 5 samples:
```bash
python main.py --mode benchmark --models gpt-4o --samples 5
```

</details>

<details>
<summary><b>๐Ÿง  Agentic Analysis</b></summary>

Run multi-step analysis with Gemini:
```bash
python main.py --mode agent --model gemini-2.5-pro --steps 10 --samples 5
```

</details>

---

## โš™๏ธ Configuration

### ๐Ÿ”‘ **Environment Variables**

| Variable | Description | Status |
|:---------|:------------|:------:|
| `OPENAI_API_KEY` | OpenAI API key for GPT models | ๐Ÿ”ถ Optional |
| `ANTHROPIC_API_KEY` | Anthropic API key for Claude models | ๐Ÿ”ถ Optional |
| `GOOGLE_API_KEY` | Google AI API key for Gemini models | ๐Ÿ”ถ Optional |

### ๐Ÿ› ๏ธ **Command Line Options**

#### ๐ŸŒŸ **Common Options**
- `--mode` โ†’ Operation mode (`data`, `benchmark`, `agent`)
- `--samples` โ†’ Number of samples to process *(default: 10)*

#### ๐Ÿ™๏ธ **Data Mode Options**  
- `--urban` โ†’ Focus on urban environments
- `--no-indoor` โ†’ Exclude indoor scenes

#### ๐Ÿ“Š **Benchmark Mode Options**
- `--models` โ†’ AI model to use *(e.g., `gpt-4o`, `claude-3`, `gemini-pro`)*

#### ๐Ÿค– **Agent Mode Options**
- `--model` โ†’ AI model for agentic analysis  
- `--steps` โ†’ Number of reasoning steps *(default: 5)*

---

## ๐ŸŽฏ Supported Models

<div align="center">

| Provider | Models | Status |
|:--------:|:-------|:------:|
| **๐Ÿ”ต OpenAI** | GPT-4o, GPT-4, GPT-3.5-turbo | โœ… Active |
| **๐ŸŸฃ Anthropic** | Claude-3-opus, Claude-3-sonnet, Claude-3-haiku | โœ… Active |
| **๐Ÿ”ด Google** | Gemini-2.5-pro, Gemini-pro, Gemini-pro-vision | โœ… Active |

</div>

---

## ๐Ÿ“‹ Requirements

> **Prerequisites:**
> - ๐Ÿ Python 3.8+
> - ๐Ÿ“ฆ UV package manager  
> - ๐Ÿ”‘ Valid API keys for desired AI providers

---

## ๐Ÿ”ง Installation

<table>
<tr>
<td>

**1๏ธโƒฃ** Clone the repository
```bash
git clone <repository-url>
```

**2๏ธโƒฃ** Navigate to project directory
```bash
cd simple_G_ai_bot
```

</td>
<td>

**3๏ธโƒฃ** Create `.env` file with your API keys
```bash
touch .env
# Add your API keys
```

**4๏ธโƒฃ** Install dependencies
```bash
uv sync
```

</td>
</tr>
</table>

**5๏ธโƒฃ** Run the bot with desired mode and options! ๐ŸŽ‰

---

## ๐Ÿ’ก Examples

### ๐Ÿ—๏ธ **Basic Dataset Generation**
```bash
python main.py --mode data --samples 20
```

### ๐ŸŒ† **Urban Scene Analysis**  
```bash
python main.py --mode data --samples 30 --urban --no-indoor
```

### โš”๏ธ **Model Comparison**
```bash
# GPT-4o Analysis
python main.py --mode benchmark --models gpt-4o --samples 10

# Claude-3 Analysis  
python main.py --mode benchmark --models claude-3-opus --samples 10
```

### ๐Ÿง  **Advanced Agentic Workflow**
```bash
python main.py --mode agent --model gemini-2.5-pro --steps 15 --samples 3
```

---

## ๐Ÿ” Security Note

> โš ๏ธ **Important**: Never commit your `.env` file to version control. Add `.env` to your `.gitignore` file to keep your API keys secure.

---

<div align="center">

## ๐Ÿ“œ License

**MIT License** - see [LICENSE](LICENSE) file for details.

---

<img src="https://img.shields.io/badge/Made%20with-โค๏ธ-red.svg" alt="Made with love">
<img src="https://img.shields.io/badge/AI%20Powered-๐Ÿค–-blue.svg" alt="AI Powered">
<img src="https://img.shields.io/badge/Open%20Source-๐Ÿ’š-green.svg" alt="Open Source">

**โญ Star this repo if you find it useful!**

</div>