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
Copy file name to clipboardExpand all lines: docs/docs/Components/components-models.md
+22-3
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ title: Models
3
3
slug: /components-models
4
4
---
5
5
6
+
import Icon from "@site/src/components/icon";
7
+
6
8
# Model components in Langflow
7
9
8
10
Model components generate text using large language models.
@@ -190,18 +192,35 @@ For more information, see the [Google Generative AI documentation](https://cloud
190
192
191
193
This component generates text using Groq's language models.
192
194
195
+
1. To use this component in a flow, connect it as a **Model** in a flow like the [Basic prompting flow](/starter-projects-basic-prompting), or select it as the **Model Provider** if you're using an **Agent** component.
196
+
197
+

198
+
199
+
2. In the **Groq API Key** field, paste your Groq API key.
200
+
The Groq model component automatically retrieves a list of the latest models.
201
+
To refresh your list of models, click <Iconname="RefreshCw"aria-label="Refresh"/>.
202
+
3. In the **Model** field, select the model you want to use for your LLM.
203
+
This example uses [llama-3.1-8b-instant](https://console.groq.com/docs/model/llama-3.1-8b-instant), which Groq recommends for real-time conversational interfaces.
204
+
4. In the **Prompt** component, enter:
205
+
```text
206
+
You are a helpful assistant who supports their claims with sources.
207
+
```
208
+
5. Click **Playground** and ask your Groq LLM a question.
209
+
The responses include a list of sources.
210
+
193
211
For more information, see the [Groq documentation](https://groq.com/).
0 commit comments