File size: 4,787 Bytes
07c2476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Quick Start

This guide will walk you through your first interaction with the AI Imaging Agent.

## Starting the Application

Once you've [installed](installation.md) and [configured](configuration.md) the agent, start the chat interface:

```bash

ai_agent chat

```

You should see output like:

```

Running on local URL:  http://127.0.0.1:7860

```

Open your web browser and navigate to **http://127.0.0.1:7860**

## Your First Query

### Example 1: Object Segmentation

Let's try a simple segmentation task:

1. **Upload an Image**: Click the upload area or drag and drop an image (e.g., a photo of a cat)

2. **Type Your Request**: In the chat input, type:
   ```

   I want to segment the cat from this image

   ```

3. **Review Recommendations**: The agent will return ranked tool recommendations with:
    - Tool names and descriptions
    - Accuracy scores
    - Explanations for why each tool matches your task
    - Links to runnable demos

4. **Run a Demo** (optional): Click the "Run Demo" button to see the result of the tool on your uploaded image

### Example 2: Medical Image Analysis

For medical imaging tasks:

1. **Upload a Medical Image**: Upload a DICOM file, NIfTI volume, or medical image

2. **Describe Your Task**:
   ```

   Segment the lungs from this CT scan

   ```

3. **Get Format-Aware Results**: The agent considers:
    - Your image format (DICOM, NIfTI, etc.)
    - Image dimensions (2D, 3D, 4D)
    - Medical imaging modality (CT, MRI, etc.)

### Example 3: General Computer Vision

For general tasks:

```

Detect all objects in this image

```

```

Extract text from this document image

```

```

Classify what type of animal is in this picture

```

## Understanding the Interface

### Chat Panel

- **Message History**: Scroll to see previous interactions
- **Rich Media**: Images, files, and tool cards are rendered inline
- **Code Blocks**: Formatted code and JSON responses

### Sidebar

- **Uploaded Files**: View all files you've uploaded in the session
- **Preview Images**: See converted image previews
- **Debug Info**: View conversation state and excluded tools (if in debug mode)

### Tool Recommendation Cards

Each recommended tool shows:

- **Rank**: Priority order (1 = best match)
- **Name**: Tool/software name
- **Accuracy Score**: Confidence level (0-100%)
- **Description**: What the tool does
- **Explanation**: Why it matches your request
- **Metadata**:
    - Supported modalities (CT, MRI, etc.)
    - Dimensions (2D, 3D, etc.)
    - File formats (DICOM, NIfTI, PNG, etc.)
    - License information
    - Tags and categories
- **Demo Link**: Direct link to runnable example

## Advanced Usage

### Multi-Turn Conversations

The agent maintains conversation context:

```

You: I have a lung CT scan

Agent: [Provides general information about lung CT analysis tools]



You: I want to segment the airways

Agent: [Provides specific airway segmentation tools]



You: Show me alternatives

Agent: [Provides different tool options]

```

### Excluding Tools

Exclude specific tools from results:

```

Find lung segmentation tools [EXCLUDE:totalsegmentator|medicalsam]

```

### Requesting Alternatives

If initial results don't match your needs:

```

Show me alternative tools



Can you search for other options?



What else is available?

```

## CLI Commands

The agent provides two main commands:

### Launch Chat Interface

```bash

ai_agent chat

```

Starts the Gradio web interface with automatic catalog synchronization.

### Sync Catalog

```bash

ai_agent sync

```

Manually synchronize the software catalog without launching the UI.

## Tips for Best Results

!!! tip "Be Specific"
    The more specific your request, the better the recommendations:

    

    - ❌ "Process this image"

    - ✅ "Segment the liver from this abdominal CT scan"


!!! tip "Upload First"
    Upload your image before describing the task. The agent can see image content and metadata.


!!! tip "Mention Formats"
    If you need specific format support, mention it:

    

    "I need a tool that works with DICOM files"


!!! tip "Use Natural Language"
    No need to use technical jargon - conversational language works fine:

    

    "Help me find tumors in this MRI" works just as well as "Tumor detection in MRI volumes"


## Next Steps

Now that you've run your first queries:

- Learn more about [Using the Chat Interface](../user-guide/chat-interface.md)
- Explore [Supported File Formats](../user-guide/file-formats.md)
- Understand [How Recommendations Work](../user-guide/recommendations.md)
- Dive into the [Architecture Overview](../architecture/overview.md)