Skip to content

Commit b784aa8

Browse files
mendonkgithub-actions[bot]github-merge-queue[bot]aimurphy
authored
docs: rename component categories and make all components single pages (#10648)
* docs: OpenAPI spec version upgraded from 1.6.5 to 1.6.8 (#10627) Co-authored-by: github-merge-queue <[email protected]> Co-authored-by: Mendon Kissling <[email protected]> * up to models and agents * sidebars * fix-broken-links * chore: Fix indentation on bundles-docling.mdx (#10640) * sidebars * redo-intros * link-to-models * data-components * files-components-no-kb * io-components * helper-utility-components * llm-ops-components * logic-components * processing-pages * sidebars * combine-legacy-components-into-one-page * update-links * remove-overview-pages-and-redirect * make-mcp-tools-page * Apply suggestions from code review Co-authored-by: April I. Murphy <[email protected]> * no-cap --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-merge-queue <[email protected]> Co-authored-by: April I. Murphy <[email protected]>
1 parent a6f5b21 commit b784aa8

File tree

85 files changed

+2673
-2507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2673
-2507
lines changed

docs/docs/API-Reference/api-files.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ To send image files to your flows through the API, see [Upload image files (v1)]
235235
:::
236236

237237
This endpoint uploads files to your Langflow server's file management system.
238-
To use an uploaded file in a flow, send the file path to a flow with a [**Read File** component](/components-data#file).
238+
To use an uploaded file in a flow, send the file path to a flow with a [**Read File** component](/read-file).
239239

240240
The default file limit is 1024 MB. To configure this value, change the `LANGFLOW_MAX_FILE_SIZE_UPLOAD` [environment variable](/environment-variables).
241241

docs/docs/API-Reference/api-flows-run.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ curl -X POST \
175175
Use the `/webhook` endpoint to start a flow by sending an HTTP `POST` request.
176176

177177
:::tip
178-
After you add a [**Webhook** component](/components-data#webhook) to a flow, open the [**API access** pane](/concepts-publish), and then click the **Webhook curl** tab to get an automatically generated `POST /webhook` request for your flow.
178+
After you add a [**Webhook** component](/webhook) to a flow, open the [**API access** pane](/concepts-publish), and then click the **Webhook curl** tab to get an automatically generated `POST /webhook` request for your flow.
179179
For more information, see [Trigger flows with webhooks](/webhook).
180180
:::
181181

docs/docs/Agents/agents-tools.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ inputs = [
198198

199199
## Use flows as tools
200200

201-
An agent can use your other flows as tools with the [**Run Flow** component](/components-logic#run-flow).
201+
An agent can use your other flows as tools with the [**Run Flow** component](/run-flow).
202202

203203
1. Add a **Run Flow** component to your flow.
204204
2. Select the flow you want the agent to use as a tool.

docs/docs/Agents/agents.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For more information, see [Agent component parameters](#agent-component-paramete
3232
4. Enter a valid credential for your selected model provider.
3333
Make sure that the credential has permission to call the selected model.
3434

35-
5. Add [**Chat Input** and **Chat Output** components](/components-io) to your flow, and then connect them to the **Agent** component.
35+
5. Add [**Chat Input** and **Chat Output** components](/chat-input-and-output) to your flow, and then connect them to the **Agent** component.
3636

3737
At this point, you have created a basic LLM-based chat flow that you can test in the <Icon name="Play" aria-hidden="true" /> **Playground**.
3838
However, this flow only chats with the LLM.
@@ -127,7 +127,7 @@ To attach a component as a tool, you must enable **Tool Mode** on the component
127127
For more information, see [Configure tools for agents](/agents-tools).
128128

129129
:::tip
130-
To allow agents to use tools from MCP servers, use the [**MCP Tools** component](/components-agents#mcp-connection).
130+
To allow agents to use tools from MCP servers, use the [**MCP Tools** component](/mcp-tools).
131131
:::
132132

133133
### Agent memory
@@ -143,7 +143,7 @@ By default, the **Agent** component uses your Langflow installation's storage, a
143143
The **Message History** component isn't required for default chat memory, but it is required if you want to use external chat memory like Mem0.
144144
Additionally, the **Message History** component provides more options for sorting, filtering, and limiting memories. Although, most of these options are built-in to the **Agent** component with default values.
145145

146-
For more information, see [Store chat memory](/memory#store-chat-memory) and [**Message History** component](/components-helpers#message-history).
146+
For more information, see [Store chat memory](/memory#store-chat-memory) and [**Message History** component](/message-history).
147147

148148
### Additional parameters
149149

docs/docs/Agents/mcp-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For information about using Langflow as an MCP client and managing MCP server co
1515

1616
## Prerequisites
1717

18-
* A [Langflow project](/concepts-flows#projects) with at least one flow that has a [**Chat Output** component](/components-io#chat-output).
18+
* A [Langflow project](/concepts-flows#projects) with at least one flow that has a [**Chat Output** component](/chat-input-and-output).
1919

2020
The **Chat Output** component is required to use a flow as an MCP tool.
2121

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: API Request
3+
slug: /api-request
4+
---
5+
6+
import Icon from "@site/src/components/icon";
7+
import Tabs from '@theme/Tabs';
8+
import TabItem from '@theme/TabItem';
9+
import PartialParams from '@site/docs/_partial-hidden-params.mdx';
10+
import PartialDevModeWindows from '@site/docs/_partial-dev-mode-windows.mdx';
11+
12+
The **API Request** component constructs and sends HTTP requests using URLs or curl commands:
13+
14+
* **URL mode**: Enter one or more comma-separated URLs, and then select the method for the request to each URL.
15+
* **curl mode**: Enter the curl command to execute.
16+
17+
You can enable additional request options and fields in the component's parameters.
18+
19+
Returns a [`Data` object](/data-types#data) containing the response.
20+
21+
For provider-specific API components, see <Icon name="Blocks" aria-hidden="true" /> [**Bundles**](/components-bundle-components).
22+
23+
### API Request parameters
24+
25+
<PartialParams />
26+
27+
| Name | Display Name | Info |
28+
|------|--------------|------|
29+
| mode | Mode | Input parameter. Set the mode to either **URL** or **curl**. |
30+
| urls | URL | Input parameter. Enter one or more comma-separated URLs for the request. |
31+
| curl | curl | Input parameter. **curl mode** only. Enter a complete curl command. Other component parameters are populated from the command arguments. |
32+
| method | Method | Input parameter. The HTTP method to use. |
33+
| query_params | Query Parameters | Input parameter. The query parameters to append to the URL. |
34+
| body | Body | Input parameter. The body to send with POST, PATCH, and PUT requests as a dictionary. |
35+
| headers | Headers | Input parameter. The headers to send with the request as a dictionary. |
36+
| timeout | Timeout | Input parameter. The timeout to use for the request. |
37+
| follow_redirects | Follow Redirects | Input parameter. Whether to follow HTTP redirects. Starting in Langflow version 1.7, the **Follow Redirects** parameter is disabled (`false`) by default to prevent SSRF bypass attacks where a public URL redirects to internal resources. Only enable redirects if you trust the target server. For more information, see [SSRF protection environment variables](/api-keys-and-authentication#ssrf-protection). |
38+
| save_to_file | Save to File | Input parameter. Whether to save the API response to a temporary file. Default: Disabled (`false`) |
39+
| include_httpx_metadata | Include HTTPx Metadata | Input parameter. Whether to include properties such as `headers`, `status_code`, `response_headers`, and `redirection_history` in the output. Default: Disabled (`false`) |
40+

docs/docs/Components/batch-run.mdx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: Batch Run
3+
slug: /batch-run
4+
---
5+
6+
import Icon from "@site/src/components/icon";
7+
import Tabs from '@theme/Tabs';
8+
import TabItem from '@theme/TabItem';
9+
import PartialParams from '@site/docs/_partial-hidden-params.mdx';
10+
import PartialDevModeWindows from '@site/docs/_partial-dev-mode-windows.mdx';
11+
12+
The **Batch Run** component runs a language model over _each row of one text column_ in a [`DataFrame`](/data-types#dataframe), and then returns a new `DataFrame` with the original text and an LLM response.
13+
The output contains the following columns:
14+
15+
* `text_input`: The original text from the input `DataFrame`
16+
* `model_response`: The model's response for each input
17+
* `batch_index`: The 0-indexed processing order for all rows in the `DataFrame`
18+
* `metadata` (optional): Additional information about the processing
19+
20+
### Use the Batch Run component in a flow
21+
22+
If you pass the **Batch Run** output to a [**Parser** component](/parser), you can use variables in the parsing template to reference these keys, such as `{text_input}` and `{model_response}`.
23+
This is demonstrated in the following example.
24+
25+
![A batch run component connected to OpenAI and a Parser](/img/component-batch-run.png)
26+
27+
1. Connect any language model component to a **Batch Run** component's **Language model** port.
28+
29+
2. Connect `DataFrame` output from another component to the **Batch Run** component's **DataFrame** input.
30+
For example, you could connect a **Read File** component with a CSV file.
31+
32+
3. In the **Batch Run** component's **Column Name** field, enter the name of the column in the incoming `DataFrame` that contains the text to process.
33+
For example, if you want to extract text from a `name` column in a CSV file, enter `name` in the **Column Name** field.
34+
35+
4. Connect the **Batch Run** component's **Batch Results** output to a **Parser** component's **DataFrame** input.
36+
37+
5. Optional: In the **Batch Run** [component's header menu](/concepts-components#component-menus), click <Icon name="SlidersHorizontal" aria-hidden="true"/> **Controls**, enable the **System Message** parameter, click **Close**, and then enter an instruction for how you want the LLM to process each cell extracted from the file.
38+
For example, `Create a business card for each name.`
39+
40+
6. In the **Parser** component's **Template** field, enter a template for processing the **Batch Run** component's new `DataFrame` columns (`text_input`, `model_response`, and `batch_index`):
41+
42+
For example, this template uses three columns from the resulting, post-batch `DataFrame`:
43+
44+
```text
45+
record_number: {batch_index}, name: {text_input}, summary: {model_response}
46+
```
47+
48+
7. To test the processing, click the **Parser** component, click <Icon name="Play" aria-hidden="true" /> **Run component**, and then click <Icon name="TextSearch" aria-hidden="true" /> **Inspect output** to view the final `DataFrame`.
49+
50+
You can also connect a **Chat Output** component to the **Parser** component if you want to see the output in the **Playground**.
51+
52+
### Batch Run parameters
53+
54+
<PartialParams />
55+
56+
| Name | Type | Description |
57+
|------|------|-------------|
58+
| model | HandleInput | Input parameter. Connect the 'Language Model' output from a language model component. Required. |
59+
| system_message | MultilineInput | Input parameter. A multi-line system instruction for all rows in the DataFrame. |
60+
| df | DataFrameInput | Input parameter. The DataFrame whose column is treated as text messages, as specified by 'column_name'. Required. |
61+
| column_name | MessageTextInput | Input parameter. The name of the DataFrame column to treat as text messages. If empty, all columns are formatted in TOML. |
62+
| output_column_name | MessageTextInput | Input parameter. Name of the column where the model's response is stored. Default=`model_response`. |
63+
| enable_metadata | BoolInput | Input parameter. If `True`, add metadata to the output DataFrame. |
64+
| batch_results | DataFrame | Output parameter. A DataFrame with all original columns plus the model's response column. |
65+

docs/docs/Components/bundles-arxiv.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ It returns a list of search results as a [`DataFrame`](/data-types#dataframe).
2525

2626
## See also
2727

28-
* [**Web Search** component](/components-data#web-search)
28+
* [**Web Search** component](/web-search)

docs/docs/Components/bundles-bing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ It returns a list of search results as a [`DataFrame`](/data-types#dataframe).
2929

3030
## See also
3131

32-
* [**Web Search** component](/components-data#web-search)
32+
* [**Web Search** component](/web-search)
3333
* [**SearchApi** bundle](/bundles-searchapi)

docs/docs/Components/bundles-cassandra.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The **Cassandra Chat Memory** component retrieves and stores chat messages using
6868
Chat memories are passed between memory storage components as the [`Memory`](/data-types#memory) data type.
6969
Specifically, the component creates an instance of `CassandraChatMessageHistory`, which is a LangChain chat message history class that uses a Cassandra database for storage.
7070

71-
For more information about using external chat memory in flows, see the [**Message History** component](/components-helpers#message-history).
71+
For more information about using external chat memory in flows, see the [**Message History** component](/message-history).
7272

7373
### Cassandra Chat Memory parameters
7474

0 commit comments

Comments
 (0)