-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Add new Data utility components for CSV/JSON parsing, routing, and filtering #3776
Merged
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
size:L
This PR changes 100-499 lines, ignoring generated files.
enhancement
New feature or request
python
Pull requests that update Python code
labels
Sep 11, 2024
vasconceloscezar
changed the title
Feat:data-components-utilities
Feat: data-components-utilities
Sep 11, 2024
These look awesome. Really useful stuff. Could you review the PR title to be something a bit more descriptive? Thanks! |
vasconceloscezar
changed the title
Feat: data-components-utilities
feat: Add new Data utility components for CSV/JSON parsing, routing, and filtering
Sep 16, 2024
github-actions
bot
added
enhancement
New feature or request
and removed
enhancement
New feature or request
labels
Sep 16, 2024
ogabrielluiz
requested changes
Sep 18, 2024
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.
This is looking good.
What do you think about another component that turns a Message into a Data (should be as simple as Data(data=message.data)
dosubot
bot
added
size:XL
This PR changes 500-999 lines, ignoring generated files.
and removed
size:L
This PR changes 100-499 lines, ignoring generated files.
labels
Sep 18, 2024
github-actions
bot
added
enhancement
New feature or request
and removed
enhancement
New feature or request
labels
Sep 18, 2024
ogabrielluiz
approved these changes
Sep 19, 2024
ogabrielluiz
force-pushed
the
feat/data-components-utilities
branch
from
September 19, 2024 20:32
fc337da
to
68aef9e
Compare
ogabrielluiz
force-pushed
the
feat/data-components-utilities
branch
from
October 2, 2024 19:21
68aef9e
to
98df35a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
python
Pull requests that update Python code
size:XL
This PR changes 500-999 lines, ignoring generated files.
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.
New helper Data components were added:
CSV to Data
The CSV to Data component accepts a File, File Path, or a CSV string and convert into list of Data objects.
Inputs (one-off those)
Outputs
Usage
This component is useful when you need to import CSV data into your Langflow project. It can handle parsing errors and provides appropriate error messages if the CSV is invalid.
JSON to Data
The JSON to Data component accepts a File, File Path, or a JSON string to a single Data object or a list of Data objects.
Inputs (one-off those)
Outputs
Usage
Use this component when working with JSON data in your flows. It can handle both single JSON objects and arrays, making it versatile for various data structures.
Data Conditional Router
The Data Conditional Router component routes a Data object based on a condition applied to a specified key.
Inputs
Outputs
Usage
This component is essential for creating conditional logic in your flows based on the content of Data objects.
Extract List Key
The Extract List Key component extracts a specific key containing a list from a Data object and returns a list of Data objects.
Inputs
Outputs
Usage
Use this component when you need to work with nested list data within your Data objects.
Filter Data Values
The Filter Data Values component filters a list of data items based on a specified key, filter value, and comparison operator.
Inputs
Outputs
Usage
This component is useful for narrowing down large datasets based on specific criteria.
Current Date
The Current Date component is not provided in the given code snippets. It likely returns the current date and time, which can be useful in various data processing and logging scenarios.