diff --git a/docs/docs/components/custom.mdx b/docs/docs/components/custom.mdx index 7ea32701f..f8af904b0 100644 --- a/docs/docs/components/custom.mdx +++ b/docs/docs/components/custom.mdx @@ -4,7 +4,7 @@ import ZoomableImage from "/src/theme/ZoomableImage.js"; import ReactPlayer from "react-player"; import Admonition from "@theme/Admonition"; -# Creating Custom Components in Langflow +# Custom Components Build custom components in Langflow for various data processing and transformation tasks. @@ -152,7 +152,7 @@ def process_data(self) -> Data: This example demonstrates a more complex component that routes data based on a condition. -Notice that this component has two outputs associated with the methods `true_response` and `false_response`. +Notice that this component has two outputs associated with the methods `true_response` and `false_response`. These methods trigger `self.stop` to block the transmission for the selected output, allowing for logic operations to be implemented visually. @@ -221,5 +221,3 @@ class ConditionalRouterComponent(Component): By following these steps and examples, you can create custom components in Langflow tailored to your specific needs. The modular structure of Custom Components allows for flexible and reusable components that can be easily integrated into your workflows. --- - - diff --git a/docs/sidebars.js b/docs/sidebars.js index 20f5dafb9..b9bd08828 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -50,7 +50,7 @@ module.exports = { }, { type: "category", - label: "Core Components", + label: "Components", collapsed: false, items: [ "components/inputs-and-outputs", @@ -63,45 +63,48 @@ module.exports = { "components/custom", ], }, - { - type: "category", - label: "Extended Components", - collapsed: true, - items: [ - "components/agents", - "components/chains", - "components/experimental", - "components/utilities", - "components/model_specs", - "components/retrievers", - "components/text-splitters", - "components/toolkits", - "components/tools", - ], - }, - { - type: "category", - label: "Example Components", - collapsed: true, - items: [ - "examples/chat-memory", - "examples/combine-text", - "examples/create-record", - "examples/pass", - "examples/store-message", - "examples/sub-flow", - "examples/text-operator", - ], - }, - { - type: "category", - label: "Migration", - collapsed: false, - items: [ - "migration/migrating-to-one-point-zero", - "migration/compatibility", - ], - }, + // RSN - Check if we need this + // { + // type: "category", + // label: "Extended Components", + // collapsed: true, + // items: [ + // "components/agents", + // "components/chains", + // "components/experimental", + // "components/utilities", + // "components/model_specs", + // "components/retrievers", + // "components/text-splitters", + // "components/toolkits", + // "components/tools", + // ], + // }, + // RSN - Check if we need this + // { + // type: "category", + // label: "Example Components", + // collapsed: true, + // items: [ + // "examples/chat-memory", + // "examples/combine-text", + // "examples/create-record", + // "examples/pass", + // "examples/store-message", + // "examples/sub-flow", + // "examples/text-operator", + // ], + // }, + // RSN - Check if we need this + // { + // type: "category", + // label: "Migration", + // collapsed: false, + // items: [ + // "migration/migrating-to-one-point-zero", + // "migration/compatibility", + // ], + // }, { type: "category", label: "Tutorials",