Commit graph

3,814 commits

Author SHA1 Message Date
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
95bf9ba233 🔧 refactor(custom_component.py): refactor get_flow method signature to use Optional type hint for flow_name and flow_id parameters for better clarity and maintainability 2023-07-31 15:02:13 -03:00
Gabriel Luiz Freitas Almeida
10ca88f709 📝 docs(CONTRIBUTING.md): update contributing guidelines and local development instructions
🚩GitHub Issues:
- Update heading level for GitHub Issues section to match the document structure

Issue labels:
- Update heading level for Issue labels section to match the document structure

Local development:
- Update heading level for Local development section to match the document structure

Run locally:
- Update heading level for Run locally section to match the document structure
- Add instructions for installing dependencies and starting the development server for the backend
- Add instructions for installing dependencies and starting the development server for the frontend

Docker compose:
- Update heading level for Docker compose section to match the document structure
- Add instructions for running the backend and frontend using Docker compose

Documentation:
- Update heading level for Documentation section to match the document structure
- Add instructions for running the documentation locally using Docusaurus
- Update the available URL for the documentation

Create a Pull Request:
- Add a closing statement with instructions to create a Pull Request to the `main` branch
2023-07-31 14:58:05 -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
Lucas Oliveira
ce0a67553a Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-31 14:05:41 -03:00
Lucas Oliveira
1687824453 Optimized code 2023-07-31 14:01:54 -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
Lucas Oliveira
ac46fff761 Formattef code 2023-07-31 10:53:42 -03:00
Lucas Oliveira
2720d27e30 Fixed error showing when not supposed to 2023-07-31 10:53:03 -03:00
Lucas Oliveira
ce2f750626 Optimized code 2023-07-31 10:50:51 -03:00
Gabriel Luiz Freitas Almeida
566c48166e 🔀 refactor(custom_component.py): modify get_flow method to accept keyword arguments for flow_name and flow_id to improve flexibility and readability 2023-07-31 10:35:48 -03:00
Lucas Oliveira
5de0b2d5ad Fixed input types logic on tooltip 2023-07-31 10:28:03 -03:00
Gabriel Luiz Freitas Almeida
9acb6fef36 🚀 feat(custom_component.py): add methods to retrieve flow by name and flow by id for CustomComponent
🐛 fix(custom_component.py): fix indentation issue in CustomComponent class
2023-07-31 10:26:27 -03:00
Lucas Oliveira
2ec4cf1a55 Fixed logic of getting tooltips, added description when tooltip is empty 2023-07-31 09:57:06 -03:00
Lucas Oliveira
3683c01102 Added scroll on tooltip, added logic to check base_classes in flow nodes before the /all list 2023-07-31 08:41:52 -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
Lucas Oliveira
1590aa491a Optimized groupByFamily and implemented output tooltip showing the nodes that receive its output 2023-07-28 21:26:08 -03:00
gustavoschaedler
7f23334f97 🐛 fix(directory_reader.py): add check for usage of 'Optional' type hint without importing it
 feat(directory_reader.py): add methods to check if a specific type hint is imported and used in function arguments
 feat(directory_reader.py): add method to check if a type hint is used but not imported in the code
 feat(directory_reader.py): add check for usage of 'Optional' type hint without importing it in the process_file method
2023-07-28 23:24:17 +01: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
anovazzi1
735f2556c2 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-28 16:09:13 -03:00
Lucas Oliveira
115a784b66 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 15:21:14 -03:00
Lucas Oliveira
5e78f6be79 Changed gitignore 2023-07-28 15:19:31 -03:00
Gabriel Luiz Freitas Almeida
bdc62ba725 🐛 fix(__main__.py): change default value of workers option from -1 to 2 to limit the number of worker processes 2023-07-28 15:17:03 -03:00
Lucas Oliveira
eaceee9480 GitIgnore changed 2023-07-28 15:07:03 -03:00
Lucas Oliveira
638f450ead Fixed bug showing on console from Unknown 2023-07-28 15:05:10 -03:00
Lucas Oliveira
22faf54737 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 15:01:08 -03:00
Rodrigo Nader
6be4799950 improve custom component docs 2023-07-28 15:00:57 -03:00
Lucas Oliveira
df8d84d07f Fixed unknown node not showing 2023-07-28 14:59:40 -03:00
anovazzi1
48995ce849 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-28 14:58:26 -03:00
anovazzi1
199052e754 fix(extraSidebarComponent): add useEffect hook to show components with errors on load
fix(extraSidebarComponent): update key prop in ShadTooltip component to use unique value
fix(extraSidebarComponent): update draggable attribute in component div to be disabled if there is an error
feat(api): add error property to APIClassType to indicate if there is an error in the component
2023-07-28 14:58:05 -03:00
Lucas Oliveira
148483ed56 Fixed key bug inside accordion 2023-07-28 14:51:06 -03:00
Lucas Oliveira
1ea05b3584 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 14:49:11 -03:00
Lucas Oliveira
641bcb4a58 Fixed unique keys bug 2023-07-28 14:48:40 -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
gustavoschaedler
859c9beaad Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 18:34:19 +01: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
gustavoschaedler
2f0ce5fc1b 🐛 fix(types.py): change default value of "error" field in component_template to None for better consistency and readability
🐛 fix(base.py): change default value of "error" field in FrontendNode class to None for better consistency and readability
2023-07-28 18:32:03 +01: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