Commit graph

100 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
0907e477fd 📝 docs(custom-component.mdx): improve clarity by emphasizing the --components-path argument using italics
📝 docs(chatprompttemplate_guide.mdx): update the "Prompt" field text to use italics for better readability
2023-07-31 18:46:31 -03:00
Gabriel Luiz Freitas Almeida
1fa00fcf8f 📝 docs(custom-component.mdx): add note about custom components appearing in 'Other' category if using a subdirectory not listed in config.yaml 2023-07-31 18:31:52 -03:00
Gabriel Luiz Freitas Almeida
a5cb741fc5 📝 docs(custom-component.mdx): add instructions for loading custom components outside of the standard interface
📝 docs(custom-component.mdx): update folder structure section to include custom agents directory

📝 docs(custom-component.mdx): add instructions for specifying the path to custom components using the Langflow CLI

📝 docs(custom-component.mdx): add instructions for setting the LANGFLOW_COMPONENTS_PATH environment variable

📝 docs(custom-component.mdx): clarify that Langflow will continue loading components even if there are errors in some of them

📝 docs(custom-component.mdx): add section on interacting with custom components in Langflow's sidebar
2023-07-31 18:15:56 -03:00
Gabriel Luiz Freitas Almeida
b2979bce17 🐛 fix(flow-runner.mdx): remove unnecessary load_flow calls and update get_flow method signature to include tweaks parameter
🚚 chore(flow-runner.mdx): update load_flow references to get_flow
🚚 chore(flow-runner.mdx): remove commented out code
🚚 chore(flow-runner.mdx): update load_flow references to get_flow
2023-07-31 16:03:51 -03:00
Gabriel Luiz Freitas Almeida
92b99f82d9 📝 docs(how-contribute.md): update contribution guide with instructions for running documentation locally using Docusaurus
🐛 fix(how-contribute.md): fix formatting and add missing newline at end of file
2023-07-31 14:56:10 -03:00
Gabriel Luiz Freitas Almeida
ec17b4e9d3 📝 docs(flow-runner.mdx): update explanation of using Document input in FlowRunner class
The change clarifies that using a `Document` as input in the `FlowRunner` class is a straightforward way to pass text data in Langflow, specifically because it can be connected to many loaders. It also mentions that generally, a flow expects a string or a dictionary as input. Additionally, it updates the explanation of extracting the content of a document using the `page_content` attribute, which is a string.
2023-07-31 14:51:09 -03:00
Gabriel Luiz Freitas Almeida
9cc0ae0242 📝 docs(flow-runner.mdx): add explanation about using Document as input in FlowRunner class
The commit adds an explanation about using a `Document` as input in the `FlowRunner` class. It clarifies that using a `Document` is a straightforward way to pass text data in Langflow. Typically, a flow expects a string or a dictionary as input, and if a dictionary is used, it should be built according to the needs of the specific flow. The commit also mentions that the content of a document can be extracted using the `page_content` property and passed as an argument to the selected flow.
2023-07-31 14:37:18 -03:00
Gabriel Luiz Freitas Almeida
1eda86658d 📝 docs(custom.mdx): fix formatting and typos in the CustomComponent class documentation
🔀 docs(custom.mdx): merge changes from the CustomComponent class documentation
📝 docs(custom.mdx): improve readability and formatting in the CustomComponent class documentation
🔀 docs(custom.mdx): merge changes from the CustomComponent class documentation
📝 docs(custom.mdx): update CustomComponent class documentation with additional methods and descriptions
🔀 docs(custom.mdx): merge changes from the CustomComponent class documentation
📝 docs(custom.mdx): update CustomComponent class documentation with corrected method names and descriptions
🔀 docs(custom.mdx): merge changes from the CustomComponent class documentation
2023-07-31 11:48:17 -03:00
Gabriel Luiz Freitas Almeida
e03e306292 📝 docs(flow-runner.mdx): fix typo in line 141, "looks" instead of "look like"
📝 docs(flow-runner.mdx): remove extra blank lines in code examples for better readability
2023-07-31 11:46:23 -03:00
Gabriel Luiz Freitas Almeida
5c42683b40 📝 docs(flow-runner.mdx): add example code for a Flow Runner custom component
ℹ️ The example code demonstrates how to create a custom component called "Flow Runner" that runs other flows using a document as input. The code includes the implementation of the `build_config` and `build` methods.

 feat(flow-runner.mdx): add example code for a Flow Runner custom component to provide a practical example for users to follow
2023-07-31 10:58:37 -03:00
Gabriel Luiz Freitas Almeida
16935ec198 🐛 fix(flow-runner.mdx): fix broken link to langchain.schema module in import statement
🐛 fix(flow-runner.mdx): remove unnecessary focus annotations in code snippets
 feat(flow-runner.mdx): add support for getting flow by name instead of id in build method
 feat(flow-runner.mdx): add caution about unique flow names in version 0.4.0
 feat(flow-runner.mdx): add support for passing document parameter in build method
🐛 fix(flow-runner.mdx): remove redundant Optional type hint for document parameter in build method
🐛 fix(flow-runner.mdx): remove empty line at the end of the file
2023-07-31 10:58:35 -03:00
Rodrigo Nader
7b12bb5e5b review flow-runner example 2023-07-31 02:22:23 -03:00
Rodrigo Nader
060fa07398 change announcement color 2023-07-30 18:05:16 -03:00
Rodrigo Nader
1cba53fcc9 minor 2023-07-30 17:59:12 -03:00
Rodrigo Nader
5a12848e49 minor 2023-07-30 17:53:33 -03:00
Rodrigo Nader
7b03dfabe6 change images 2023-07-28 17:37:28 -03:00
Rodrigo Nader
0bec0ab1db update docs 2023-07-28 17:16:49 -03:00
Rodrigo Nader
6be4799950 improve custom component docs 2023-07-28 15:00:57 -03:00
Gabriel Luiz Freitas Almeida
208b5d4bb8 📝 docs(custom.mdx): improve formatting and add missing punctuation in the table description
🐛 fix(custom.mdx): add missing punctuation in the field descriptions
 feat(custom.mdx): add clarification to the field descriptions and provide examples for some fields
📝 docs(custom.mdx): add missing punctuation in the method description
🐛 fix(custom.mdx): add comment to clarify the purpose of the line
2023-07-28 14:45:05 -03:00
Gabriel Luiz Freitas Almeida
0d57263a0a 📝 docs(custom.mdx): fix typo in the comment, change "top level" to "top-level" for consistency 2023-07-28 14:33:53 -03:00
Gabriel Luiz Freitas Almeida
c6091444d5 📝 docs(custom.mdx): remove outdated information about loading flow and tweaks parameter in CustomComponent class 2023-07-28 14:31:48 -03:00
Gabriel Luiz Freitas Almeida
f82a97b010 📝 docs(prompt-customization.mdx): add line breaks for better readability and remove unnecessary empty lines 2023-07-28 14:26:40 -03:00
Gabriel Luiz Freitas Almeida
1b09ddf667 📝 docs(custom-component.mdx): add a tip admonition with a link to the FlowRunner Component example for more powerful usage of custom components 2023-07-28 14:26:17 -03:00
Gabriel Luiz Freitas Almeida
ab6d6bc803 📝 docs(flow-runner.mdx): update introduction to clarify the purpose of the CustomComponent
📝 docs(flow-runner.mdx): update example description to focus on creating a component to run other flows
2023-07-28 14:25:50 -03:00
Gabriel Luiz Freitas Almeida
231978d1df 🎨 style(docs): update image rendering in examples and guidelines files for better readability and consistency
🔧 chore(docs): fix formatting in chat-widget.mdx file

🎨 style(components.mdx): Remove unnecessary div wrapper and fix indentation
🎨 style(features.mdx): Remove unnecessary div wrapper and fix indentation
🎨 style(prompt-customization.mdx): Remove unnecessary div wrappers and fix indentation
🎨 style(index.mdx): Remove unnecessary div wrapper and fix indentation
2023-07-28 12:59:15 -03:00
Gabriel Luiz Freitas Almeida
6bf7612292 📚 docs(sidebars.js): add "flow-runner" example to the "Examples" section for better documentation coverage 2023-07-28 11:58:58 -03:00
Gabriel Luiz Freitas Almeida
90bb8535ec 📸 feat(docs): add screenshots of flow runner and flow runner code for documentation purposes 2023-07-28 11:57:44 -03:00
Gabriel Luiz Freitas Almeida
1d47d47c4d 📝 docs(custom.mdx): update table formatting and clarify field_type and options usage in custom component documentation
📝 docs(custom-component.mdx): remove is_list from function field and clarify options usage in build_config method
2023-07-28 11:57:13 -03:00
Gabriel Luiz Freitas Almeida
784f813dc5 📝 docs(flow-runner.mdx): update FlowRunner example to improve readability and add field customization in build_config method 2023-07-28 11:56:34 -03:00
Gabriel Luiz Freitas Almeida
734a91b913 feat(flow-runner.mdx): add FlowRunner example to the documentation to demonstrate how to create a custom component that runs other flows 2023-07-28 11:26:50 -03:00
Gabriel Luiz Freitas Almeida
4ad226f35b 📚 docs(custom-component.mdx): remove unnecessary code and examples from the custom component guidelines
📚 docs(custom-component.mdx): remove unnecessary code and examples related to the FlowRunner component from the custom component guidelines
2023-07-28 11:24:16 -03:00
Gabriel Luiz Freitas Almeida
457453656a 📝 docs(custom.mdx): update documentation for Custom Component
The changes in this commit update the documentation for the Custom Component.

- Clarify that the code must be a class that inherits from the `langflow.CustomComponent` class.
- Explain that the type annotations of the `build` instance method are used to create the fields of the component.
- Provide a table of supported types for the `build` method.
- Introduce the `build_config` instance method for defining configuration fields.
- Describe the format and available keys for the `build_config` method.
- Add usage example for the `build` method.

These changes improve the clarity and completeness of the documentation for the Custom Component, making it easier for users to understand and utilize this feature.
2023-07-28 11:23:26 -03:00
Gabriel Luiz Freitas Almeida
28cebb2d39 🔧 chore(docs): update custom-component.mdx
🐛 fix(custom-component.mdx): change class name from BestComponent to DocumentProcessor to improve semantics and clarity
 feat(custom-component.mdx): add support for processing the page content of a document based on a selected function
📝 docs(custom-component.mdx): update example and explanations to reflect the changes made in the code

🐛 fix(custom-component.mdx): fix code indentation and remove unused imports
 feat(custom-component.mdx): update component name and description to improve clarity and semantics
🐛 fix(custom-component.mdx): update build method parameters and return type to match the actual implementation
 feat(custom-component.mdx): add support for configuring fields in the build_config method
🐛 fix(custom-component.mdx): fix code indentation and remove unused imports in the build_config method
 feat(custom-component.mdx): add support for configuring fields in the build_config method
2023-07-28 09:30:56 -03:00
Gabriel Luiz Freitas Almeida
dc2207d194 📝 docs(img): add images for document processor and document processor code
📝 docs(img): add images for document processor and document processor code to enhance documentation and provide visual representation of the process
2023-07-28 09:30:28 -03:00
Gabriel Luiz Freitas Almeida
559778d4b6 🐛 fix(ZoomableImage.js): add style prop to ZoomableImage component to allow custom styling
 feat(ZoomableImage.js): add default style to ZoomableImage component for consistent layout and centering of images
2023-07-28 09:29:18 -03:00
Rodrigo Nader
2ce2be4544 minor 2023-07-27 22:14:05 -03:00
Rodrigo Nader
645f35e186 Enhance custom component docs 2023-07-27 22:08:12 -03:00
Gabriel Luiz Freitas Almeida
9cd919b7f5 📝 docs(custom-component.mdx): update guidelines for custom components and add examples
📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components
2023-07-27 18:12:16 -03:00
Gabriel Luiz Freitas Almeida
397c665536 Merge branch 'python_custom_node_component' into ChatWidgetAPI 2023-07-27 17:38:35 -03:00
Gabriel Luiz Freitas Almeida
aeca627222 📝 docs(custom-component.mdx): update guidelines for custom components
 feat(custom-component.mdx): add rules and explanations for creating custom components

📝 docs(custom-component.mdx): update rule 1 to specify that the script must contain a single class inheriting from CustomComponent

📝 docs(custom-component.mdx): update rule 2 to specify that the class must have a build method

📝 docs(custom-component.mdx): update rule 3 to specify that the type annotations of the build method will be used to create the fields of the component

📝 docs(custom-component.mdx): update rule 4 to specify that the class can have a build_config method

📝 docs(custom-component.mdx): update rule 4 to provide details on the format of the build_config method

📝 docs(custom-component.mdx): update rule 4 to correct a typo in the display_name key

📝 docs(custom-component.mdx): update rule 4 to provide additional details on the options and multiline keys in the build_config method

📝 docs(custom-component.mdx): add example for creating a FlowRunner component

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to include display_name and description attributes

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to import Document from the schema module

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to add parameters and return type to the build method
2023-07-27 17:28:46 -03:00
Gabriel Luiz Freitas Almeida
4783b47815 🔧 chore(custom.css): adjust max-width and min-width of .ch-scrollycoding-content and .ch-scrollycoding-sticker to improve layout
🔧 chore(custom.css): add min-height to .ch-scrollycoding-step-content for better spacing
2023-07-27 17:20:29 -03:00
Rodrigo Nader
d9663bee45 Rename widget.md to chat-widget.md
- The code changes renamed the file `widget.mdx` to `chat-widget.mdx`.
- The content has been modified to reflect the new name and provide a more detailed description of the Langflow Chat Widget.
- The usage instructions have been updated to reflect the changes.

This commit renames `widget.mdx` to `chat-widget.mdx` and provides more detailed information about the Langflow Chat Widget, including its features, usage in HTML, React, and Angular, and customization options.
2023-07-27 15:49:22 -03:00
Cristhian Zanforlin Lousa
f49bca8e9d 📝 docs(widget.mdx): add Admonition component to provide additional information about using the Chat Widget in Angular projects
📝 docs(widget.mdx): update caution admonition to provide instructions on passing JSON props as Stringified JSONs
2023-07-27 09:06:58 -03:00
Gabriel Luiz Freitas Almeida
e43f52dd7a 📝 docs(custom-component.mdx): update guidelines for creating custom components
 feat(custom-component.mdx): add example code for creating a custom component
🔧 chore(custom-component.mdx): update code comments and fix typo in build_config method
2023-07-27 08:04:18 -03:00
Gabriel Luiz Freitas Almeida
529322e56a 🎨 style(custom.css): adjust max-width and min-width of .ch-scrollycoding-content and .ch-scrollycoding-sticker to improve layout proportions 2023-07-27 08:00:22 -03:00
Gabriel Luiz Freitas Almeida
d8980d34f2 🔧 chore(docusaurus.config.js): enable sidebar to be hideable in the docs section for better user experience 2023-07-27 07:59:58 -03:00
Lucas Oliveira
1c5eb4a2f8 Changed text to be more specific 2023-07-27 07:54:27 -03:00
Lucas Oliveira
5b34d8e725 Added note to JSONs on docs 2023-07-27 07:52:24 -03:00
Gabriel Luiz Freitas Almeida
fa8b3eca92 📝 docs(widget.mdx): update code snippet language from html to jsx for accuracy and clarity 2023-07-27 07:34:21 -03:00
Gabriel Luiz Freitas Almeida
5110644082 🔧 chore(widget.mdx): remove unnecessary comment in langflow-chat component example 2023-07-27 07:33:32 -03:00