This commit is contained in:
github-merge-queue[bot]
2025-05-27 18:22:45 +00:00
parent 35461a5e1a
commit 0a0424ec90
213 changed files with 237 additions and 232 deletions

View File

@ -21,7 +21,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@550;600&amp;display=swap">
<script>!function(){window.semaphore=window.semaphore||[],window.ketch=function(){window.semaphore.push(arguments)};var e=document.createElement("script");e.type="text/javascript",e.src="https://global.ketchcdn.com/web/v3/config/datastax/langflow_org_web/boot.js",e.defer=e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}()</script>
<script defer="true">!function(){const e=e=>{if(window.gtag&&e.purposes&&"analytics"in e.purposes&&"targeted_advertising"in e.purposes){const n=!0===e.purposes.analytics?"granted":"denied",t=!0===e.purposes.targeted_advertising?"granted":"denied",a={analytics_storage:n,ad_personalization:t,ad_storage:t,ad_user_data:t};window.gtag("consent","update",a)}};window.ketch&&window.ketch("on","consent",e)}()</script><link rel="stylesheet" href="/assets/css/styles.cf9a4109.css">
<script src="/assets/js/runtime~main.9148619b.js" defer="defer"></script>
<script src="/assets/js/runtime~main.9dabb8d5.js" defer="defer"></script>
<script src="/assets/js/main.6f40caea.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">
@ -40,11 +40,6 @@
<p>The <strong>Split Text</strong> processing component in this flow splits the incoming <a href="/concepts-objects">Data</a> into chunks to be embedded into the vector store component.</p>
<p>The component offers control over chunk size, overlap, and separator, which affect context and granularity in vector store retrieval results.</p>
<p><img decoding="async" loading="lazy" src="/assets/images/vector-store-document-ingestion-fce32e9be440846a2545397e3a18b7bf.png" width="1804" height="1546" class="img_ev3q"></p>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="combine-data">Combine data<a href="#combine-data" class="hash-link" aria-label="Direct link to Combine data" title="Direct link to Combine data"></a></h2>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>Prior to Langflow version 1.1.3, this component was named <strong>Merge Data</strong>.</p></div></div>
<p>This component combines multiple data sources into a single unified <a href="/concepts-objects#data-object">Data</a> object.</p>
<p>The component iterates through the input list of data objects, merging them into a single data object. If the input list is empty, it returns an empty data object. If there&#x27;s only one input data object, it returns that object unchanged. The merging process uses the addition operator to combine data objects.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>A list of data objects to be merged.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>merged_data</td><td>Merged Data</td><td>A single <a href="/concepts-objects#data-object">Data</a> object containing the combined information from all input data objects.</td></tr></tbody></table></div></div></details>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="dataframe-operations">DataFrame operations<a href="#dataframe-operations" class="hash-link" aria-label="Direct link to DataFrame operations" title="Direct link to DataFrame operations"></a></h2>
<p>This component performs operations on <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html" target="_blank" rel="noopener noreferrer">DataFrame</a> rows and columns.</p>
<p>To use this component in a flow, connect a component that outputs <a href="/concepts-objects#dataframe-object">DataFrame</a> to the <strong>DataFrame Operations</strong> component.</p>
@ -128,14 +123,6 @@ The <strong>Data to DataFrame</strong> component converts the webhook request in
</ol>
<div class="ch-codeblock not-prose" data-ch-theme="github-dark"><div class="ch-code-wrapper ch-code" data-ch-measured="false"><code class="ch-code-scroll-parent"><br><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>| text | data |</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>|:--------------------------------|:---------------------------------------------------------------------|</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>| Kalani Smith - Employee Profile | {&#x27;Name&#x27;: &#x27;Kalani Smith&#x27;, &#x27;Role&#x27;: &#x27;Designer&#x27;, &#x27;Department&#x27;: &#x27;Design&#x27;} |</span></div></div><br></code></div></div>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data_list</td><td>Data or Data List</td><td>One or multiple Data objects to transform into a DataFrame.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>dataframe</td><td>DataFrame</td><td>A DataFrame built from each Data object&#x27;s fields plus a text column.</td></tr></tbody></table></div></div></details>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="filter-data">Filter data<a href="#filter-data" class="hash-link" aria-label="Direct link to Filter data" title="Direct link to Filter data"></a></h2>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Beta</strong> as of Langflow version 1.1.3, and is not yet fully supported.</p></div></div>
<p>This component filters a <a href="/concepts-objects#data-object">Data</a> object based on a list of keys.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>The Data object to filter.</td></tr><tr><td>filter_criteria</td><td>Filter Criteria</td><td>A list of keys to filter by.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>filtered_data</td><td>Filtered Data</td><td>A new Data object containing only the key-value pairs that match the filter criteria.</td></tr></tbody></table></div></div></details>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="filter-values">Filter values<a href="#filter-values" class="hash-link" aria-label="Direct link to Filter values" title="Direct link to Filter values"></a></h2>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Beta</strong> as of Langflow version 1.1.3, and is not yet fully supported.</p></div></div>
<p>The Filter values component filters a list of data items based on a specified key, filter value, and comparison operator.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>input_data</td><td>Input data</td><td>The list of data items to filter.</td></tr><tr><td>filter_key</td><td>Filter Key</td><td>The key to filter on.</td></tr><tr><td>filter_value</td><td>Filter Value</td><td>The value to filter by.</td></tr><tr><td>operator</td><td>Comparison Operator</td><td>The operator to apply for comparing the values.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>filtered_data</td><td>Filtered data</td><td>The resulting list of filtered data items.</td></tr></tbody></table></div></div></details>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="lambda-filter">Lambda filter<a href="#lambda-filter" class="hash-link" aria-label="Direct link to Lambda filter" title="Direct link to Lambda filter"></a></h2>
<p>This component uses an LLM to generate a Lambda function for filtering or transforming structured data.</p>
<p>To use the <strong>Lambda filter</strong> component, you must connect it to a <a href="/components-models#language-model">Language Model</a> component, which the component uses to generate a function based on the natural language instructions in the <strong>Instructions</strong> field.</p>
@ -274,11 +261,18 @@ Instead of JSON objects, the output contains 50-character lines of text with 10
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="legacy-components">Legacy components<a href="#legacy-components" class="hash-link" aria-label="Direct link to Legacy components" title="Direct link to Legacy components"></a></h2>
<p><strong>Legacy</strong> components are available for use but are no longer supported.</p>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="alter-metadata">Alter metadata<a href="#alter-metadata" class="hash-link" aria-label="Direct link to Alter metadata" title="Direct link to Alter metadata"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.
Instead, use the <a href="#data-operations">Data operations</a> component.</p></div></div>
<p>This component modifies metadata of input objects. It can add new metadata, update existing metadata, and remove specified metadata fields. The component works with both <a href="/concepts-objects#message-object">Message</a> and <a href="/concepts-objects#data-object">Data</a> objects, and can also create a new Data object from user-provided text.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>input_value</td><td>Input</td><td>Objects to which Metadata should be added</td></tr><tr><td>text_in</td><td>User Text</td><td>Text input; the value is contained in the &#x27;text&#x27; attribute of the <a href="/concepts-objects#data-object">Data</a> object. Empty text entries are ignored.</td></tr><tr><td>metadata</td><td>Metadata</td><td>Metadata to add to each object</td></tr><tr><td>remove_fields</td><td>Fields to Remove</td><td>Metadata fields to remove</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>List of Input objects, each with added metadata</td></tr></tbody></table></div></div></details>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>input_value</td><td>Input</td><td>Objects to which Metadata should be added.</td></tr><tr><td>text_in</td><td>User Text</td><td>Text input; the value is contained in the &#x27;text&#x27; attribute of the <a href="/concepts-objects#data-object">Data</a> object. Empty text entries are ignored.</td></tr><tr><td>metadata</td><td>Metadata</td><td>Metadata to add to each object.</td></tr><tr><td>remove_fields</td><td>Fields to Remove</td><td>Metadata fields to remove.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>List of Input objects, each with added metadata.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="combine-data">Combine data<a href="#combine-data" class="hash-link" aria-label="Direct link to Combine data" title="Direct link to Combine data"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.
Prior to Langflow version 1.1.3, this component was named <strong>Merge Data</strong>.</p></div></div>
<p>This component combines multiple data sources into a single unified <a href="/concepts-objects#data-object">Data</a> object.</p>
<p>The component iterates through the input list of data objects, merging them into a single data object. If the input list is empty, it returns an empty data object. If there&#x27;s only one input data object, it returns that object unchanged. The merging process uses the addition operator to combine data objects.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>A list of data objects to be merged.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>merged_data</td><td>Merged Data</td><td>A single <a href="/concepts-objects#data-object">Data</a> object containing the combined information from all input data objects.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="combine-text">Combine text<a href="#combine-text" class="hash-link" aria-label="Direct link to Combine text" title="Direct link to Combine text"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is no longer in active development.
Instead, use the <a href="#combine-data">Combine data</a> component.</p></div></div>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.</p></div></div>
<p>This component concatenates two text sources into a single text chunk using a specified delimiter.</p>
<ol>
<li>To use this component in a flow, connect two components that output <a href="/concepts-objects#message-object">Messages</a> to the <strong>Combine Text</strong> component&#x27;s <strong>First Text</strong> and <strong>Second Text</strong> inputs.
@ -297,25 +291,36 @@ The combined text appears in the <strong>Playground</strong>.</li>
<div class="ch-codeblock not-prose" data-ch-theme="github-dark"><div class="ch-code-wrapper ch-code" data-ch-measured="false"><code class="ch-code-scroll-parent"><br><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>This is the first text. Let&#x27;s combine text!</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>end first text</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>start second text</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>Here&#x27;s the second part. We&#x27;ll see how combining text works.</span></div></div><br></code></div></div>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>first_text</td><td>First Text</td><td>The first text input to concatenate.</td></tr><tr><td>second_text</td><td>Second Text</td><td>The second text input to concatenate.</td></tr><tr><td>delimiter</td><td>Delimiter</td><td>A string used to separate the two text inputs. The default is a space.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>message</td><td>Message</td><td>A Message object containing the combined text.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="create-data">Create data<a href="#create-data" class="hash-link" aria-label="Direct link to Create data" title="Direct link to Create data"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is no longer in active development as of Langflow version 1.1.3.</p></div></div>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.</p></div></div>
<p>This component dynamically creates a <a href="/concepts-objects#data-object">Data</a> object with a specified number of fields.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>number_of_fields</td><td>Number of Fields</td><td>The number of fields to be added to the record.</td></tr><tr><td>text_key</td><td>Text Key</td><td>Key that identifies the field to be used as the text content.</td></tr><tr><td>text_key_validator</td><td>Text Key Validator</td><td>If enabled, checks if the given <code>Text Key</code> is present in the given <code>Data</code>.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>A <a href="/concepts-objects#data-object">Data</a> object created with the specified fields and text key.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="filter-data">Filter data<a href="#filter-data" class="hash-link" aria-label="Direct link to Filter data" title="Direct link to Filter data"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.
Instead, use the <a href="#data-operations">Data operations</a> component.</p></div></div>
<p>This component filters a <a href="/concepts-objects#data-object">Data</a> object based on a list of keys.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data</td><td>Data</td><td>The Data object to filter.</td></tr><tr><td>filter_criteria</td><td>Filter Criteria</td><td>A list of keys to filter by.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>filtered_data</td><td>Filtered Data</td><td>A new Data object containing only the key-value pairs that match the filter criteria.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="filter-values">Filter values<a href="#filter-values" class="hash-link" aria-label="Direct link to Filter values" title="Direct link to Filter values"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.
Instead, use the <a href="#data-operations">Data operations</a> component.</p></div></div>
<p>The Filter values component filters a list of data items based on a specified key, filter value, and comparison operator.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>input_data</td><td>Input data</td><td>The list of data items to filter.</td></tr><tr><td>filter_key</td><td>Filter Key</td><td>The key to filter on.</td></tr><tr><td>filter_value</td><td>Filter Value</td><td>The value to filter by.</td></tr><tr><td>operator</td><td>Comparison Operator</td><td>The operator to apply for comparing the values.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>filtered_data</td><td>Filtered data</td><td>The resulting list of filtered data items.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="json-cleaner">JSON cleaner<a href="#json-cleaner" class="hash-link" aria-label="Direct link to JSON cleaner" title="Direct link to JSON cleaner"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.</p></div></div>
<p>The JSON cleaner component cleans JSON strings to ensure they are fully compliant with the JSON specification.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>json_str</td><td>JSON String</td><td>The JSON string to be cleaned. This can be a raw, potentially malformed JSON string produced by language models or other sources that may not fully comply with JSON specifications.</td></tr><tr><td>remove_control_chars</td><td>Remove Control Characters</td><td>If set to True, this option removes control characters (ASCII characters 0-31 and 127) from the JSON string. This can help eliminate invisible characters that might cause parsing issues or make the JSON invalid.</td></tr><tr><td>normalize_unicode</td><td>Normalize Unicode</td><td>When enabled, this option normalizes Unicode characters in the JSON string to their canonical composition form (NFC). This ensures consistent representation of Unicode characters across different systems and prevents potential issues with character encoding.</td></tr><tr><td>validate_json</td><td>Validate JSON</td><td>If set to True, this option attempts to parse the JSON string to ensure it is well-formed before applying the final repair operation. It raises a ValueError if the JSON is invalid, allowing for early detection of major structural issues in the JSON.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>output</td><td>Cleaned JSON String</td><td>The resulting cleaned, repaired, and validated JSON string that fully complies with the JSON specification.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="parse-dataframe">Parse DataFrame<a href="#parse-dataframe" class="hash-link" aria-label="Direct link to Parse DataFrame" title="Direct link to Parse DataFrame"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is no longer in active development as of Langflow version 1.3.
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.
Instead, use the <a href="#parser">Parser</a> component.</p></div></div>
<p>This component converts DataFrames into plain text using templates.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>df</td><td>DataFrame</td><td>The DataFrame to convert to text rows.</td></tr><tr><td>template</td><td>Template</td><td>Template for formatting (use <code>{column_name}</code> placeholders).</td></tr><tr><td>sep</td><td>Separator</td><td>String to join rows in output.</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>text</td><td>Text</td><td>All rows combined into single text.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="parse-json">Parse JSON<a href="#parse-json" class="hash-link" aria-label="Direct link to Parse JSON" title="Direct link to Parse JSON"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is no longer in active development as of Langflow version 1.1.3.</p></div></div>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.</p></div></div>
<p>This component converts and extracts JSON fields using JQ queries.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>input_value</td><td>Input</td><td>Data object to filter (<a href="/concepts-objects#message-object">Message</a> or <a href="/concepts-objects#data-object">Data</a>).</td></tr><tr><td>query</td><td>JQ Query</td><td>JQ Query to filter the data</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>filtered_data</td><td>Filtered Data</td><td>Filtered data as list of <a href="/concepts-objects#data-object">Data</a> objects.</td></tr></tbody></table></div></div></details>
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="select-data">Select data<a href="#select-data" class="hash-link" aria-label="Direct link to Select data" title="Direct link to Select data"></a></h3>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is no longer in active development as of Langflow version 1.1.3.</p></div></div>
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>This component is in <strong>Legacy</strong>, which means it is available for use but no longer in active development.</p></div></div>
<p>This component selects a single <a href="/concepts-objects#data-object">Data</a> item from a list.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data_list</td><td>Data List</td><td>List of data to select from</td></tr><tr><td>data_index</td><td>Data Index</td><td>Index of the data to select</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>selected_data</td><td>Selected Data</td><td>The selected <a href="/concepts-objects#data-object">Data</a> object.</td></tr></tbody></table></div></div></details></div></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/components-models"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Models</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/components-prompts"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Prompts</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#use-a-processing-component-in-a-flow" class="table-of-contents__link toc-highlight">Use a processing component in a flow</a></li><li><a href="#combine-data" class="table-of-contents__link toc-highlight">Combine data</a></li><li><a href="#dataframe-operations" class="table-of-contents__link toc-highlight">DataFrame operations</a><ul><li><a href="#operations" class="table-of-contents__link toc-highlight">Operations</a></li></ul></li><li><a href="#data-operations" class="table-of-contents__link toc-highlight">Data operations</a><ul><li><a href="#operations-1" class="table-of-contents__link toc-highlight">Operations</a></li></ul></li><li><a href="#data-to-dataframe" class="table-of-contents__link toc-highlight">Data to DataFrame</a></li><li><a href="#filter-data" class="table-of-contents__link toc-highlight">Filter data</a></li><li><a href="#filter-values" class="table-of-contents__link toc-highlight">Filter values</a></li><li><a href="#lambda-filter" class="table-of-contents__link toc-highlight">Lambda filter</a></li><li><a href="#llm-router" class="table-of-contents__link toc-highlight">LLM router</a></li><li><a href="#message-to-data" class="table-of-contents__link toc-highlight">Message to data</a></li><li><a href="#parser" class="table-of-contents__link toc-highlight">Parser</a></li><li><a href="#regex-extractor" class="table-of-contents__link toc-highlight">Regex extractor</a></li><li><a href="#save-to-file" class="table-of-contents__link toc-highlight">Save to File</a><ul><li><a href="#file-input-format-options" class="table-of-contents__link toc-highlight">File input format options</a></li></ul></li><li><a href="#split-text" class="table-of-contents__link toc-highlight">Split text</a></li><li><a href="#update-data" class="table-of-contents__link toc-highlight">Update data</a></li><li><a href="#legacy-components" class="table-of-contents__link toc-highlight">Legacy components</a><ul><li><a href="#alter-metadata" class="table-of-contents__link toc-highlight">Alter metadata</a></li><li><a href="#combine-text" class="table-of-contents__link toc-highlight">Combine text</a></li><li><a href="#create-data" class="table-of-contents__link toc-highlight">Create data</a></li><li><a href="#json-cleaner" class="table-of-contents__link toc-highlight">JSON cleaner</a></li><li><a href="#parse-dataframe" class="table-of-contents__link toc-highlight">Parse DataFrame</a></li><li><a href="#parse-json" class="table-of-contents__link toc-highlight">Parse JSON</a></li><li><a href="#select-data" class="table-of-contents__link toc-highlight">Select data</a></li></ul></li></ul></div></div></div></div></main></div></div></div><footer class="footer"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title"></div><ul class="footer__items clean-list"><li class="footer__item"><div class="footer-links">
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Parameters</summary><div><div class="collapsibleContent_i85q"><p><strong>Inputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>data_list</td><td>Data List</td><td>List of data to select from</td></tr><tr><td>data_index</td><td>Data Index</td><td>Index of the data to select</td></tr></tbody></table><p><strong>Outputs</strong></p><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>selected_data</td><td>Selected Data</td><td>The selected <a href="/concepts-objects#data-object">Data</a> object.</td></tr></tbody></table></div></div></details></div></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/components-models"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Models</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/components-prompts"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Prompts</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#use-a-processing-component-in-a-flow" class="table-of-contents__link toc-highlight">Use a processing component in a flow</a></li><li><a href="#dataframe-operations" class="table-of-contents__link toc-highlight">DataFrame operations</a><ul><li><a href="#operations" class="table-of-contents__link toc-highlight">Operations</a></li></ul></li><li><a href="#data-operations" class="table-of-contents__link toc-highlight">Data operations</a><ul><li><a href="#operations-1" class="table-of-contents__link toc-highlight">Operations</a></li></ul></li><li><a href="#data-to-dataframe" class="table-of-contents__link toc-highlight">Data to DataFrame</a></li><li><a href="#lambda-filter" class="table-of-contents__link toc-highlight">Lambda filter</a></li><li><a href="#llm-router" class="table-of-contents__link toc-highlight">LLM router</a></li><li><a href="#message-to-data" class="table-of-contents__link toc-highlight">Message to data</a></li><li><a href="#parser" class="table-of-contents__link toc-highlight">Parser</a></li><li><a href="#regex-extractor" class="table-of-contents__link toc-highlight">Regex extractor</a></li><li><a href="#save-to-file" class="table-of-contents__link toc-highlight">Save to File</a><ul><li><a href="#file-input-format-options" class="table-of-contents__link toc-highlight">File input format options</a></li></ul></li><li><a href="#split-text" class="table-of-contents__link toc-highlight">Split text</a></li><li><a href="#update-data" class="table-of-contents__link toc-highlight">Update data</a></li><li><a href="#legacy-components" class="table-of-contents__link toc-highlight">Legacy components</a><ul><li><a href="#alter-metadata" class="table-of-contents__link toc-highlight">Alter metadata</a></li><li><a href="#combine-data" class="table-of-contents__link toc-highlight">Combine data</a></li><li><a href="#combine-text" class="table-of-contents__link toc-highlight">Combine text</a></li><li><a href="#create-data" class="table-of-contents__link toc-highlight">Create data</a></li><li><a href="#filter-data" class="table-of-contents__link toc-highlight">Filter data</a></li><li><a href="#filter-values" class="table-of-contents__link toc-highlight">Filter values</a></li><li><a href="#json-cleaner" class="table-of-contents__link toc-highlight">JSON cleaner</a></li><li><a href="#parse-dataframe" class="table-of-contents__link toc-highlight">Parse DataFrame</a></li><li><a href="#parse-json" class="table-of-contents__link toc-highlight">Parse JSON</a></li><li><a href="#select-data" class="table-of-contents__link toc-highlight">Select data</a></li></ul></li></ul></div></div></div></div></main></div></div></div><footer class="footer"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title"></div><ul class="footer__items clean-list"><li class="footer__item"><div class="footer-links">
<span>© 2025 Langflow</span>
<span id="preferenceCenterContainer"> ·&nbsp; <a href="https://langflow.org/preferences">Manage Privacy Choices</a></span>
</div></li></ul></div></div><div class="footer__bottom text--center"><div class="margin-bottom--sm"><img src="/img/langflow-logo-black.svg" alt="Langflow" class="footer__logo themedComponent_mlkZ themedComponent--light_NVdE" width="160" height="40"><img src="/img/langflow-logo-white.svg" alt="Langflow" class="footer__logo themedComponent_mlkZ themedComponent--dark_xIcU" width="160" height="40"></div></div></div></footer><div style="position:fixed;right:20px;bottom:20px;z-index:100;display:flex;align-items:center;gap:10px;cursor:pointer"><div style="background-color:#f6f6f6;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0,0,0,0.1)"><img src="/img/langflow-icon-black-transparent.svg" style="width:40px" alt="Search"></div></div></div>