Components

A component is a single building block within a flow and consists of inputs, outputs, and parameters that define its functionality.

The handles (circles) on the side of a component indicate the types of inputs and outputs that can be connected at that port. Hover over a handle to see connection details.

Click the visibility to preview a component’s output.

To run a single component, click play_arrow Play. A check Check indicates that the component ran successfully.

To run the entire flow, click play_arrow Play on the last component in the flow. A check Check on all components indicates that the flow ran successfully.

component

Component menu

Click on a component to open the component menu.

  • Code: Modify and save component code.

  • Advanced Settings: Modify parameters for the component.

  • Freeze Path: After a component runs, lock its previous output state to prevent it from re-running.

  • All: Open a menu of all component options.

Code

Click the Code button to view and edit the Python code for a component.

Click Check & Save to save your changes.

A validation check will run to ensure that the new code is correct (the equivalent of clicking play_arrow Play on the component).

Advanced Settings

Langflow components can be edited by clicking the Advanced Settings button.

Hide parameters with the Show button.

To modify a component’s name and description, double-click on them. Component descriptions accept Markdown syntax.

Freeze Path

After a component runs, lock its previous output state to prevent it from re-running.

If you’re expecting consistent output from a component and don’t need to re-run it, click Freeze Path.

This freezes all components downstream of the selected component.

All

Click All to open a menu of all component options.

Menu Item Shortcut Description

Code

⌘ + C

Opens the code editor for the component.

Advanced

⌘ + A

Opens advanced settings for component.

Save

⌘ + S

Saves the current state of the component to Saved components in the sidebar.

Duplicate

⌘ + D

Creates a duplicate of the component.

Copy

⌘ + C

Copies the selected component. Can be pasted in the workspace with ⌘ + V.

Docs

⌘ + D

Opens related documentation.

Minimize

⌘ + Q

Minimizes the current component.

Freeze

⌘ + F

Freezes the current component state.

Freeze Path

⌘ + F

Freezes the current component state and all upstream components.

Download

⌘ + D

Downloads the current component as a JSON file.

Delete

⌘ + ⌫

Deletes the component.

Group multiple components

Multiple components can be grouped into a single component for reuse. Combine large flows into single components (like RAG with a vector database, for example) to save space.

  1. Hold Shift and drag to select components.

  2. Select Group.

  3. The components merge into a single component.

  4. Double-click the name and description to rename them.

  5. Save your grouped component in the sidebar for later use.

Save a component

  1. Click more_horiz All and select save Save. Your component is saved in the sidebar for later use.

  2. To use the component in another flow, drag it from the sidebar to the workspace.

Update a component version

When you create a new component by moving it from the sidebar to the workspace, the two components are no longer in parity. A component will keep the version number it was initialized to the workspace with.

To update a component to the latest version, do the following:

  1. Click the warning icon. This will update the version of the component in the workspace.

  2. Click play_arrow Play. A check Check indicates that the component ran successfully.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com