You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agents enable conversation with data, including structured and unstructured data connected to MindsDB.
7
7
8
-
## How Agents Work
9
-
10
8
Connect your data to MindsDB by [connecting databases or applications](/integrations/data-overview) or [uploading files](/mindsdb_sql/sql/create/file). Users can opt for using [knowledge bases](/mindsdb_sql/knowledge-bases) to store and retrieve data efficiently.
11
9
12
10
Create an agent, passing the connected data and defining the underlying model.
It creates an agent that uses the defined model and has access to the connected data.
52
-
53
-
```sql
54
-
SHOW AGENTS
55
-
WHERE name ='my_agent';
56
-
```
57
-
58
-
### `model`
59
-
60
-
This parameter defines the underlying language model.
61
-
62
-
The available models and providers include the following.
63
-
64
-
<AccordionGroup>
65
-
66
-
<Accordiontitle="Anthropic">
67
-
Available models:
68
-
- claude-3-opus-20240229
69
-
- claude-3-sonnet-20240229
70
-
- claude-3-haiku-20240307
71
-
- claude-2.1
72
-
- claude-2.0
73
-
- claude-instant-1.2
74
-
</Accordion>
75
-
76
-
<Accordiontitle="Google">
77
-
Available models:
78
-
- gemini-2.5-pro-preview-03-25
79
-
- gemini-2.0-flash
80
-
- gemini-2.0-flash-lite
81
-
- gemini-1.5-flash
82
-
- gemini-1.5-flash-8b
83
-
- gemini-1.5-pro
84
-
</Accordion>
85
-
86
-
<Accordiontitle="Ollama">
87
-
Available models:
88
-
- gemma
89
-
- llama2
90
-
- mistral
91
-
- mixtral
92
-
- llava
93
-
- neural-chat
94
-
- codellama
95
-
- dolphin-mixtral
96
-
- qwen
97
-
- llama2-uncensored
98
-
- mistral-openorca
99
-
- deepseek-coder
100
-
- nous-hermes2
101
-
- phi
102
-
- orca-mini
103
-
- dolphin-mistral
104
-
- wizard-vicuna-uncensored
105
-
- vicuna
106
-
- tinydolphin
107
-
- llama2-chinese
108
-
- openhermes
109
-
- zephyr
110
-
- nomic-embed-text
111
-
- tinyllama
112
-
- openchat
113
-
- wizardcoder
114
-
- phind-codellama
115
-
- starcoder
116
-
- yi
117
-
- orca2
118
-
- falcon
119
-
- starcoder2
120
-
- wizard-math
121
-
- dolphin-phi
122
-
- nous-hermes
123
-
- starling-lm
124
-
- stable-code
125
-
- medllama2
126
-
- bakllava
127
-
- codeup
128
-
- wizardlm-uncensored
129
-
- solar
130
-
- everythinglm
131
-
- sqlcoder
132
-
- nous-hermes2-mixtral
133
-
- stable-beluga
134
-
- yarn-mistral
135
-
- samantha-mistral
136
-
- stablelm2
137
-
- meditron
138
-
- stablelm-zephyr
139
-
- magicoder
140
-
- yarn-llama2
141
-
- wizard-vicuna
142
-
- llama-pro
143
-
- deepseek-llm
144
-
- codebooga
145
-
- mistrallite
146
-
- dolphincoder
147
-
- nexusraven
148
-
- open-orca-platypus2
149
-
- all-minilm
150
-
- goliath
151
-
- notux
152
-
- alfred
153
-
- megadolphin
154
-
- xwinlm
155
-
- wizardlm
156
-
- duckdb-nsql
157
-
- notus
158
-
</Accordion>
159
-
160
-
<Accordiontitle="OpenAI">
161
-
Available models:
162
-
- gpt-3.5-turbo
163
-
- gpt-3.5-turbo-16k
164
-
- gpt-3.5-turbo-instruct
165
-
- gpt-4
166
-
- gpt-4-32k
167
-
- gpt-4-1106-preview
168
-
- gpt-4-0125-preview
169
-
- gpt-4o
170
-
- o3-mini
171
-
- o1-mini
172
-
</Accordion>
173
-
174
-
<Accordiontitle="Nvidia NIM">
175
-
Available models:
176
-
- microsoft/phi-3-mini-4k-instruct
177
-
- mistralai/mistral-7b-instruct-v0.2
178
-
- writer/palmyra-med-70b
179
-
- mistralai/mistral-large
180
-
- mistralai/codestral-22b-instruct-v0.1
181
-
- nvidia/llama3-chatqa-1.5-70b
182
-
- upstage/solar-10.7b-instruct
183
-
- google/gemma-2-9b-it
184
-
- adept/fuyu-8b
185
-
- google/gemma-2b
186
-
- databricks/dbrx-instruct
187
-
- meta/llama-3_1-8b-instruct
188
-
- microsoft/phi-3-medium-128k-instruct
189
-
- 01-ai/yi-large
190
-
- nvidia/neva-22b
191
-
- meta/llama-3_1-70b-instruct
192
-
- google/codegemma-7b
193
-
- google/recurrentgemma-2b
194
-
- google/gemma-2-27b-it
195
-
- deepseek-ai/deepseek-coder-6.7b-instruct
196
-
- mediatek/breeze-7b-instruct
197
-
- microsoft/kosmos-2
198
-
- microsoft/phi-3-mini-128k-instruct
199
-
- nvidia/llama3-chatqa-1.5-8b
200
-
- writer/palmyra-med-70b-32k
201
-
- google/deplot
202
-
- meta/llama-3_1-405b-instruct
203
-
- aisingapore/sea-lion-7b-instruct
204
-
- liuhaotian/llava-v1.6-mistral-7b
205
-
- microsoft/phi-3-small-8k-instruct
206
-
- meta/codellama-70b
207
-
- liuhaotian/llava-v1.6-34b
208
-
- nv-mistralai/mistral-nemo-12b-instruct
209
-
- microsoft/phi-3-medium-4k-instruct
210
-
- seallms/seallm-7b-v2.5
211
-
- mistralai/mixtral-8x7b-instruct-v0.1
212
-
- mistralai/mistral-7b-instruct-v0.3
213
-
- google/paligemma
214
-
- google/gemma-7b
215
-
- mistralai/mixtral-8x22b-instruct-v0.1
216
-
- google/codegemma-1.1-7b
217
-
- nvidia/nemotron-4-340b-instruct
218
-
- meta/llama3-70b-instruct
219
-
- microsoft/phi-3-small-128k-instruct
220
-
- ibm/granite-8b-code-instruct
221
-
- meta/llama3-8b-instruct
222
-
- snowflake/arctic
223
-
- microsoft/phi-3-vision-128k-instruct
224
-
- meta/llama2-70b
225
-
- ibm/granite-34b-code-instruct
226
-
</Accordion>
227
-
228
-
<Accordiontitle="Writer">
229
-
Available models:
230
-
- palmyra-x5
231
-
- palmyra-x4
232
-
</Accordion>
233
-
234
-
</AccordionGroup>
235
-
236
-
### `<provider>_api_key`
237
-
238
-
This parameter stores the API key for accessing models. Include the provider of the model in the parameter name, such as `anthropic_api_key`, `google_api_key`, `openai_api_key`.
239
-
240
-
For example, use `google_api_key` when using `gemini-2.0-flash` for a model, and analogically, use `openai_api_key` when using `gpt-4o` for a model.
241
-
242
-
### `include_knowledge_bases`
243
-
244
-
This parameter stores the list of knowledge bases accessible by the agent for data retrieval.
245
-
246
-
Learn more about [knowledge bases here](/mindsdb_sql/knowledge-bases).
247
-
248
-
### `include_tables`
249
-
250
-
This parameter stores the list of data sources accessible by the agent.
251
-
252
-
Learn more about available [data integrations here](/integrations/data-overview).
253
-
254
-
### `prompt_template`
255
-
256
-
This parameter stores instructions for the agent.
257
-
258
-
It is recommended to provide data description of the data sources listed in the `include_knowledge_bases` and `include_tables` to help the agent locate relevant data for answering questions.
259
-
260
-
## `SELECT FROM AGENT` Syntax
261
-
262
-
Query an agent to generate responses to questions.
263
-
264
-
```sql
265
-
SELECT answer
266
-
FROM my_agent
267
-
WHERE question ='What is the average number of orders per customers?';
268
-
```
269
-
270
-
### Chat Interface
271
-
272
-
MindsDB provides a chat interface that enables users to chat with their data.
273
-
274
-
<Note>
275
-
To access the chat interface and converse with agents, users need to enable the A2A API that is used to communicate between the chat interface and the agent.
Note that the `MINDSDB_A2A_HOST` variable is required when running MindsDB on a remote host, such as AWS. If you run MindsDB on `127.0.0.1`, the `MINDSDB_A2A_HOST` variable is not required.
282
-
</Note>
283
-
284
-
<palign="center">
285
-
<imgsrc="/assets/mindsdb_gui_respond.png" />
286
-
</p>
287
-
288
-
Select an agent from the list of existing agents, or create one if none exists yet.
Now the chat interface is connected to this agent via [Agent2Agent Protocol](https://google.github.io/A2A/) and users can chat with the data connected to this agent.
295
-
296
-
<palign="center">
297
-
<imgsrc="/assets/mindsdb_gui_respond_chat.png" />
298
-
</p>
299
-
300
-
## `DROP AGENT` Syntax
301
-
302
-
Here is the syntax for deleting an agent:
303
-
304
-
```sql
305
-
DROP AGENT my_agent;
306
-
```
40
+
<Tip>
41
+
Follow [this doc page to learn more about the usage of agents](/mindsdb_sql/agents/agent_syntax).
Agents enable conversation with data, including structured and unstructured data connected to MindsDB.
7
+
8
+
MindsDB provides a chat interface that enables users to chat with their data.
9
+
10
+
<Note>
11
+
To access the chat interface and converse with agents, users need to enable the A2A API that is used to communicate between the chat interface and the agent.
Note that the `MINDSDB_A2A_HOST` variable is required when running MindsDB on a remote host, such as AWS. If you run MindsDB on `127.0.0.1`, the `MINDSDB_A2A_HOST` variable is not required.
18
+
</Note>
19
+
20
+
<palign="center">
21
+
<imgsrc="/assets/mindsdb_gui_respond.png" />
22
+
</p>
23
+
24
+
Select an agent from the list of existing agents, or create one if none exists yet.
Now the chat interface is connected to this agent via [Agent2Agent Protocol](https://google.github.io/A2A/) and users can chat with the data connected to this agent.
0 commit comments