-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat: StructuredOutput returns list of Data objects when multiple=True #5477
base: main
Are you sure you want to change the base?
feat: StructuredOutput returns list of Data objects when multiple=True #5477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @elephantum
I like this. Thank you!
What if we made this component have two different outputs?
This change is good but it is a breaking change.
@ogabrielluiz hey, thanks for taking a look. Indeed, I do not understand in detail how to deal with backwards compatibility in Langflow. I will keep original output as is and add list as a new output |
…ist and DataFrame
Hi! I'm autofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests. I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:
|
@ogabrielluiz please, take another look, I added methods for all possible types of output :) |
Description
This PR proposes a change in Structured Output behavior when Generate Multiple is set to true.
Currently when Generate Multiple is used component produces a single Data entry with single key
objects
which contains a string representation of a json list of records. This is a bit counterintuitive because Langflow supports input and output of lists of Data objects.Solution
We propose to change semantics of Structured Output to return a list Data objects when Generate Multiple is enabled