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
8. To view your created DataFrame, in the **Parser** component, click <Iconname="TextSearch"aria-label="Inspect icon" />.
53
53
9. Optionally, connect a **Chat Output** component, and open the **Playground** to see the output.
54
54
55
-
### Inputs
55
+
<details>
56
+
<summary>Parameters</summary>
56
57
57
-
| Name | Display Name | Type | Info |
58
-
|------|--------------|------|------|
59
-
| model | Language Model | HandleInput | Connect the 'Language Model' output from your LLM component here. Required. |
60
-
| system_message | System Message | MultilineInput | Multi-line system instruction for all rows in the DataFrame. |
61
-
| df | DataFrame | DataFrameInput | The DataFrame whose column is treated as text messages, as specified by 'column_name'. Required. |
62
-
| column_name | Column Name | MessageTextInput | The name of the DataFrame column to treat as text messages. Default='text'. Required. |
63
-
| enable_metadata | Enable Metadata | BoolInput | If True, add metadata to the output DataFrame. |
58
+
**Inputs**
64
59
65
-
### Outputs
60
+
| Name | Type | Description |
61
+
|------|------|-------------|
62
+
| model | HandleInput | Connect the 'Language Model' output from your LLM component here. Required. |
63
+
| system_message | MultilineInput | A multi-line system instruction for all rows in the DataFrame. |
64
+
| df | DataFrameInput | The DataFrame whose column is treated as text messages, as specified by 'column_name'. Required. |
65
+
| column_name | MessageTextInput | The name of the DataFrame column to treat as text messages. Default='text'. Required. |
66
+
| enable_metadata | BoolInput | If True, add metadata to the output DataFrame. |
66
67
67
-
| Name | Display Name | Method | Info |
68
-
|------|--------------|--------|------|
69
-
| batch_results | Batch Results | run_batch | A DataFrame with columns: 'text_input', 'model_response', 'batch_index', and optional 'metadata' containing processing information. |
68
+
**Outputs**
69
+
70
+
| Name | Type | Description |
71
+
|------|------|-------------|
72
+
| batch_results | DataFrame | A DataFrame with columns: 'text_input', 'model_response', 'batch_index', and optional 'metadata' containing processing information. |
73
+
74
+
</details>
70
75
71
76
## Current date
72
77
73
78
The Current Date component returns the current date and time in a selected timezone. This component provides a flexible way to obtain timezone-specific date and time information within a Langflow pipeline.
74
79
75
-
### Inputs
80
+
<details>
81
+
<summary>Parameters</summary>
82
+
83
+
**Inputs**
84
+
85
+
| Name | Type | Description |
86
+
|------|------|-------------|
87
+
| timezone | String | The timezone for the current date and time. |
76
88
77
-
| Name | Display Name | Info |
78
-
|------|--------------|------|
79
-
|timezone|Timezone|Select the timezone for the current date and time.
89
+
**Outputs**
80
90
81
-
### Outputs
91
+
| Name | Type | Description |
92
+
|------|------|-------------|
93
+
| current_date | String | The resulting current date and time in the selected timezone. |
82
94
83
-
| Name | Display Name | Info |
84
-
|------|--------------|------|
85
-
|current_date|Current Date|The resulting current date and time in the selected timezone.
95
+
</details>
86
96
87
97
## ID Generator
88
98
89
99
This component generates a unique ID.
90
100
91
-
### Inputs
101
+
<details>
102
+
<summary>Parameters</summary>
92
103
93
-
| Name | Display Name | Info |
94
-
|------|--------------|------|
95
-
| unique_id| Value | The generated unique ID. |
104
+
**Inputs**
96
105
97
-
### Outputs
106
+
| Name | Type | Description |
107
+
|------|------|-------------|
108
+
| unique_id | String | The generated unique ID. |
98
109
99
-
| Name | Display Name | Info |
100
-
|------|--------------|------|
101
-
| id | ID | The generated unique ID. |
110
+
**Outputs**
111
+
112
+
| Name | Type | Description |
113
+
|------|------|-------------|
114
+
| id | String | The generated unique ID. |
115
+
116
+
</details>
102
117
103
118
## Message history
104
119
@@ -114,25 +129,30 @@ In this example, the **Message Store** component stores the complete chat histor
114
129
115
130
For more information on configuring memory in Langflow, see [Memory](/memory).
116
131
117
-
### Inputs
132
+
<details>
133
+
<summary>Parameters</summary>
134
+
135
+
**Inputs**
136
+
137
+
| Name | Type | Description |
138
+
|------|------|-------------|
139
+
| memory | Memory | Retrieve messages from an external memory. If empty, the Langflow tables are used. |
140
+
| sender | String | Filter by sender type. |
141
+
| sender_name | String | Filter by sender name. |
142
+
| n_messages | Integer | The number of messages to retrieve. |
143
+
| session_id | String | The session ID of the chat. If empty, the current session ID parameter is used. |
144
+
| order | String | The order of the messages. |
145
+
| template | String | The template to use for formatting the data. It can contain the keys `{text}`, `{sender}` or any other key in the message data. |
118
146
119
-
| Name | Display Name | Info |
120
-
|------|--------------|------|
121
-
| memory | External Memory | Retrieve messages from an external memory. If empty, it will use the Langflow tables. |
122
-
| sender | Sender Type | Filter by sender type. |
123
-
| sender_name | Sender Name | Filter by sender name. |
124
-
| n_messages | Number of Messages | Number of messages to retrieve. |
125
-
| session_id | Session ID | The session ID of the chat. If empty, the current session ID parameter will be used. |
126
-
| order | Order | Order of the messages. |
127
-
| template | Template | The template to use for formatting the data. It can contain the keys `{text}`, `{sender}` or any other key in the message data. |
147
+
**Outputs**
128
148
129
-
### Outputs
149
+
| Name | Type | Description |
150
+
|------|------|-------------|
151
+
| messages | Data | The retrieved messages as Data objects. |
152
+
| messages_text | String | The retrieved messages formatted as text. |
@@ -144,21 +164,26 @@ In this example, the **Message Store** component stores the complete chat histor
144
164
145
165
For more information on configuring memory in Langflow, see [Memory](/memory).
146
166
147
-
### Inputs
167
+
<details>
168
+
<summary>Parameters</summary>
148
169
149
-
| Name | Display Name | Info |
150
-
|------|--------------|------|
151
-
| message | Message | The chat message to be stored. (Required) |
152
-
| memory | External Memory | The external memory to store the message. If empty, it will use the Langflow tables. |
153
-
| sender | Sender | The sender of the message. Can be Machine or User. If empty, the current sender parameter will be used. |
154
-
| sender_name | Sender Name | The name of the sender. Can be AI or User. If empty, the current sender parameter will be used. |
155
-
| session_id | Session ID | The session ID of the chat. If empty, the current session ID parameter will be used. |
170
+
**Inputs**
156
171
157
-
### Outputs
172
+
| Name | Type | Description |
173
+
|------|------|-------------|
174
+
| message | String | The chat message to be stored. (Required) |
175
+
| memory | Memory | The external memory to store the message. If empty, the Langflow tables are used. |
176
+
| sender | String | The sender of the message. Can be Machine or User. If empty, the current sender parameter is used. |
177
+
| sender_name | String | The name of the sender. Can be AI or User. If empty, the current sender parameter is used. |
178
+
| session_id | String | The session ID of the chat. If empty, the current session ID parameter is used. |
158
179
159
-
| Name | Display Name | Info |
160
-
|------|--------------|------|
161
-
| stored_messages | Stored Messages | The list of stored messages after the current message has been added. |
180
+
**Outputs**
181
+
182
+
| Name | Type | Description |
183
+
|------|------|-------------|
184
+
| stored_messages | List[Data]| The list of stored messages after the current message has been added. |
185
+
186
+
</details>
162
187
163
188
## Structured output
164
189
@@ -182,23 +207,27 @@ The **Parse DataFrame** component parses the structured output into a template f
182
207
183
208
For example, the template `EBITDA: {EBITDA} , Net Income: {NET_INCOME} , GROSS_PROFIT: {GROSS_PROFIT}` presents the extracted values in the **Playground** as `EBITDA: 900 million , Net Income: 500 million , GROSS_PROFIT: 1.2 billion`.
184
209
185
-
### Inputs
210
+
<details>
211
+
<summary>Parameters</summary>
212
+
213
+
**Inputs**
214
+
215
+
| Name | Type | Description |
216
+
|------|------|-------------|
217
+
| llm | LanguageModel | The language model to use to generate the structured output. |
218
+
| input_value | String | The input message to the language model. |
219
+
| system_prompt | String | The instructions to the language model for formatting the output. |
220
+
| schema_name | String | The name for the output data schema. |
221
+
| output_schema | Table | The structure and data types for the model's output. |
222
+
| multiple | Boolean |[Deprecated] Always set to `True`. |
186
223
187
-
| Name | Display Name | Info |
188
-
|------|--------------|------|
189
-
| llm | Language Model | The language model to use to generate the structured output. |
190
-
| input_value | Input Message | The input message to the language model. |
191
-
| system_prompt | Format Instructions | Instructions to the language model for formatting the output. |
192
-
| schema_name | Schema Name | The name for the output data schema. |
193
-
| output_schema | Output Schema | Defines the structure and data types for the model's output.|
194
-
| multiple | Generate Multiple |[Deprecated] Always set to `True`. |
224
+
**Outputs**
195
225
196
-
### Outputs
226
+
| Name | Type | Description |
227
+
|------|------|-------------|
228
+
| structured_output | Data | The structured output is a Data object based on the defined schema. |
197
229
198
-
| Name | Display Name | Info |
199
-
|------|--------------|------|
200
-
| structured_output | Structured Output | The structured output is a Data object based on the defined schema. |
201
-
| structured_output_dataframe | DataFrame | The structured output converted to a [DataFrame](/concepts-objects#dataframe-object) format. |
230
+
</details>
202
231
203
232
## Legacy components
204
233
@@ -208,19 +237,24 @@ Legacy components are available for use but are no longer supported.
208
237
209
238
This component dynamically creates a record with a specified number of fields.
210
239
211
-
#### Inputs
240
+
<details>
241
+
<summary>Parameters</summary>
212
242
213
-
| Name | Display Name | Info |
214
-
|------|--------------|------|
215
-
| n_fields | Number of Fields | Number of fields to be added to the record. |
216
-
| text_key | Text Key | Key used as text. |
243
+
**Inputs**
217
244
218
-
#### Outputs
245
+
| Name | Type | Description |
246
+
|------|------|-------------|
247
+
| n_fields | Integer | The number of fields to be added to the record. |
248
+
| text_key | String | The key used as text. |
219
249
220
-
| Name | Display Name | Info |
221
-
|------|--------------|------|
250
+
**Outputs**
251
+
252
+
| Name | Type | Description |
253
+
|------|------|-------------|
222
254
| list | List | The dynamically created list with the specified number of fields. |
223
255
256
+
</details>
257
+
224
258
### Output Parser
225
259
226
260
This component transforms the output of a language model into a specified format. It supports CSV format parsing, which converts LLM responses into comma-separated lists using Langchain's `CommaSeparatedListOutputParser`.
@@ -246,15 +280,20 @@ Please list three fruits.
246
280
247
281
4. The output parser converts this into a Python list: `["apple", "banana", "orange"]`.
248
282
249
-
#### Inputs
283
+
<details>
284
+
<summary>Parameters</summary>
285
+
286
+
**Inputs**
287
+
288
+
| Name | Type | Description |
289
+
|------|------|-------------|
290
+
| parser_type | String | The parser type. Currently supports "CSV". |
250
291
251
-
| Name | Display Name | Info |
252
-
|------|--------------|------|
253
-
| parser_type | Parser | Select the parser type. Currently supports "CSV". |
292
+
**Outputs**
254
293
255
-
#### Outputs
294
+
| Name | Type | Description |
295
+
|------|------|-------------|
296
+
| format_instructions | String | Pass to a prompt template to include formatting instructions for LLM responses. |
297
+
| output_parser | Parser | The constructed output parser that can be used to parse LLM responses. |
256
298
257
-
| Name | Display Name | Info |
258
-
|------|--------------|------|
259
-
| format_instructions | Format Instructions | Pass to a prompt template to include formatting instructions for LLM responses. |
260
-
| output_parser | Output Parser | The constructed output parser that can be used to parse LLM responses. |
0 commit comments