-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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: adding list of Data output to Parse Data #4598
Open
mieslep
wants to merge
11
commits into
langflow-ai:main
Choose a base branch
from
mieslep:phil/parse-data
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dosubot
bot
added
the
size:M
This PR changes 30-99 lines, ignoring generated files.
label
Nov 14, 2024
CodSpeed Performance ReportMerging #4598 will degrade performances by 20.26%Comparing Summary
Benchmarks breakdown
|
ogabrielluiz
changed the title
adding list of Data output to Parse Data
feat: adding list of Data output to Parse Data
Nov 14, 2024
Will modify to keep signature of |
@ogabrielluiz this should now be gtg from my perspective. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
ParseDataComponent
class and related functions to enhance data processing capabilities. The most significant changes include adding new imports, updating input and output configurations, and modifying thedata_to_text
function to support more flexible data formatting.Enhancements to data processing:
src/backend/base/langflow/components/processing/parse_data.py
: Added import forData
fromlangflow.schema
.Updates to
ParseDataComponent
class:src/backend/base/langflow/components/processing/parse_data.py
: UpdatedDataInput
to accept lists by settingis_list=True
.src/backend/base/langflow/components/processing/parse_data.py
: ModifiedOutput
configurations to include additional information and added a new output methodparse_data_as_list
for processing data as a list.src/backend/base/langflow/components/processing/parse_data.py
: Refactored theparse_data
method to use a new helper method_parse
, and added theparse_data_as_list
method to handle list outputs.Improvements to
data_to_text
function:src/backend/base/langflow/helpers/data.py
: Updated thedata_to_text
function to return either a single string or a list of strings, depending on the presence of a separator. [1] [2]