-
Notifications
You must be signed in to change notification settings - Fork 917
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: tool meta generation perf optimization #1250
Merged
elliotzh
merged 4 commits into
main
from
zhangxingzhi/tool-meta-generation-perf-optimization
Nov 28, 2023
Merged
feat: tool meta generation perf optimization #1250
elliotzh
merged 4 commits into
main
from
zhangxingzhi/tool-meta-generation-perf-optimization
Nov 28, 2023
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
elliotzh
force-pushed
the
zhangxingzhi/tool-meta-generation-perf-optimization
branch
from
November 24, 2023 06:55
1764ba8
to
0112855
Compare
wangchao1230
previously approved these changes
Nov 24, 2023
elliotzh
force-pushed
the
zhangxingzhi/tool-meta-generation-perf-optimization
branch
from
November 25, 2023 08:48
0112855
to
b527dff
Compare
D-W-
reviewed
Nov 28, 2023
elliotzh
force-pushed
the
zhangxingzhi/tool-meta-generation-perf-optimization
branch
from
November 28, 2023 09:13
b527dff
to
b443065
Compare
wangchao1230
approved these changes
Nov 28, 2023
zhengfeiwang
approved these changes
Nov 28, 2023
elliotzh
deleted the
zhangxingzhi/tool-meta-generation-perf-optimization
branch
November 28, 2023 11:44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 various changes to improve the functionality and structure of the codebase. The most important changes include adding a new test method to test the behavior of a specific method, updating a method to use a new type and adding a new parameter, and adding a new Python file with a function for parsing JSON.
Perf change:
Main code changes:
src/promptflow/promptflow/_sdk/_utils.py
: Various changes to the_utils.py
file, including adding a new function, updating import statements, improving print statements, removing unused imports, and adding new parameters to existing functions. [1] [2] [3] [4] [5] [6] [7]src/promptflow/promptflow/_sdk/operations/_flow_operations.py
: Updating the_generate_tools_meta
method to use theProtectedFlow
type, adding a new parametertimeout
to the method, updating import statements, renaming and specifying the type of theflow
parameter in thevalidate
function, and adding a new decorator and default parameter to the_generate_tools_meta
function. [1] [2] [3] [4] [5] [6]Testing improvements:
src/promptflow/tests/sdk_cli_test/e2etests/test_flow_local_operations.py
: Added a new test methodtest_flow_generate_tools_meta_timeout
to test the behavior of the_generate_tools_meta
method when a timeout occurs.Configuration changes:
src/promptflow/tests/test_configs/flows/web_classification_invalid/flow.dag.yaml
: Removed the line- ../external_files/convert_to_dict.py
from theadditional_includes
section inweb_classification_invalid/flow.dag.yaml
.New file addition:
src/promptflow/tests/test_configs/flows/web_classification_invalid/convert_to_dict.py
: Added a new Python fileconvert_to_dict.py
in theweb_classification_invalid
directory, which contains a functionconvert_to_dict
that parses a string as JSON and returns the parsed JSON object or a default dictionary if parsing fails.# DescriptionPlease add an informative description that covers that changes made by the pull request and link all relevant issues.
All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines