New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Component Output] Custom component does not display output connection points in Langflow UI #1357
Comments
🤖 Hello @lxwboxs! 👋 I'm Dosu, a bot here to assist you with your issues, questions, or if you're looking to contribute to the project. While we wait for a human maintainer, I'm here to offer what help I can in the meantime. Let's dive into solving this bug together! 😃 Based on the code you provided, it seems like your custom component In your output_types: list[str] = ["Document"] This should be correct as per the Langflow's custom component structure. However, it's possible that the UI is not correctly interpreting this output type. One thing you could try is to explicitly define the output types in the def build(self, file_path: str, loader: str) -> 'Document':
# Your code here This might help the UI correctly interpret the output type of your component. If this doesn't solve your issue, it would be helpful if you could provide more information about how you're adding your custom component to the Langflow UI. Are you adding it through the UI's component library, or are you adding it programmatically through the Langflow API? This information could help us better understand the issue. Also, please make sure that your Langflow version is up-to-date. The latest version is v0.6.4. If you're using an older version, please update it and try again. For more information about creating custom components in Langflow, you can refer to the CustomComponent.py file in the Langflow repository. I hope this helps! If you have any more questions or if the issue persists, please let me know. Best regards, Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
No, what you said doesn't solve my problem, I customized the components according to the document( https://docs.langflow.org/guidelines/custom-component )The example given is written in the hope that community members can provide answers |
🤖 @ogabrielluiz, this one's a bit out of my wheelhouse, could you step in and provide your guidance? This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Fixes [Component Output] Custom component does not display output connection points in Langflow UI #1357
Fixes [Component Output] Custom component does not display output connection points in Langflow UI #1357
- Fix issue causing Store API key to become invalid. - Refactor the `parse_return_statement` method to handle nested returns, addressing issue #1357. - Update the `.env.example` file with the latest configuration options. - Fix the `refresh_http_only` variable to ensure proper handling of HTTP-only cookies. - Fix uninteded submission - Update Anthropic implementation
Title:
[Component Output] Custom component does not display output connection points in Langflow UI
Description:
I created a custom component called SimpleDirectoryReaderComponent on the Langflow platform. Although it should output data of type Document, the expected output connection point is not displayed on the canvas of the UI.
Reproduction steps:
Create a new Custom Component class in the editor of Langflow platform.
Implement build and build_ The config method.
Build and connect components on the canvas.
The observed behavior is that the component does not display output connection points.
Expected behavior:
The component should have an output connection point that allows me to connect it to subsequent components.
Environment:
-Langflow version: 0.6.4
-Operating system: Windows 10
-Browser: Chrome 90
Additional information:
I have confirmed that the build method correctly returned the Document object and did not catch any exceptions in the code. I have attached the code for the components and screenshots of the UI.
Code path: langflow.components.documentloaders.SimpleDirectoryReaderLoader.SimpleDirectoryReaderComponent
Thank you for your time and help.
The text was updated successfully, but these errors were encountered: