Skip to content
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

Sample for release 1.10.0 #2856

Merged
merged 41 commits into from
Apr 26, 2024
Merged

Sample for release 1.10.0 #2856

merged 41 commits into from
Apr 26, 2024

Conversation

wangchao1230
Copy link
Contributor

@wangchao1230 wangchao1230 commented Apr 17, 2024

Description

Target changes:

  • Flex flow:
    • basic chat notebook sample update: init with ModelConfiguration, aggregate
    • chat stream sample
  • Prompty:
    • Prmpty format sample: text, json, all, stream

All Promptflow Contribution checklist:

  • The pull request does not introduce [breaking changes].
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: suggested workflow.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@wangchao1230 wangchao1230 requested a review from a team as a code owner April 17, 2024 13:27
@github-actions github-actions bot added the examples Improvements on examples label Apr 17, 2024
@wangchao1230 wangchao1230 changed the title Sample for release 1.10 Sample for release 1.10.0 Apr 18, 2024
wangchao1230 and others added 7 commits April 18, 2024 20:20
# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.


This pull request includes changes to the
`examples/flex-flows/basic/flex-flow-quickstart-azure.ipynb`,
`examples/flex-flows/basic/flex-flow-quickstart.ipynb`,
`examples/flex-flows/eval-code-quality/README.md`,
`examples/flex-flows/eval-code-quality/code_quality.py`,
`examples/flex-flows/eval-code-quality/flow.flex.yaml`, and
`examples/flex-flows/eval-code-quality/requirements.txt` files. The
changes mainly involve the transition from function-based to class-based
code evaluation, the introduction of model configuration objects, and
updates to the setup instructions in the README file.

Changes to the
`examples/flex-flows/basic/flex-flow-quickstart-azure.ipynb` and
`examples/flex-flows/basic/flex-flow-quickstart.ipynb` files:

* Added a new cell to set up model configuration with connection or
environment variables.
[[1]](diffhunk://#diff-a64451050396d58812e8c2bbbce2f98b3b7e4e2a586be8c703487f8846741488R176-R199)
[[2]](diffhunk://#diff-d4c67b6bed1a770d020db92e64df3bb319b132289e09dd083707e87ced5c577cR142-R175)
* Updated the `eval_run` function call to include the `model_config` in
the `init` parameter.
[[1]](diffhunk://#diff-a64451050396d58812e8c2bbbce2f98b3b7e4e2a586be8c703487f8846741488R218)
[[2]](diffhunk://#diff-d4c67b6bed1a770d020db92e64df3bb319b132289e09dd083707e87ced5c577cR293)
* Updated the `eval_code` function to `CodeEvaluator` class and updated
the evaluation call accordingly.

Changes to the `examples/flex-flows/eval-code-quality/README.md` file:

* Updated the description of the flow and the setup instructions to
reflect the transition from function-based to class-based code
evaluation and the introduction of model configuration objects.
[[1]](diffhunk://#diff-0fa5117b09b5922685950440b10bdaeca4b206e05853c7472fff77545662bb15L2-R2)
[[2]](diffhunk://#diff-0fa5117b09b5922685950440b10bdaeca4b206e05853c7472fff77545662bb15L15-R32)

Changes to the `examples/flex-flows/eval-code-quality/code_quality.py`
file:

* Updated the `eval_code` function to the `CodeEvaluator` class, which
uses a model configuration object to evaluate the quality of code
snippets.
[[1]](diffhunk://#diff-99b22c88ac4a230afbae6ec816390e8209fbe3d8e28cb9b87b00e0d832fd393bL32-R42)
[[2]](diffhunk://#diff-99b22c88ac4a230afbae6ec816390e8209fbe3d8e28cb9b87b00e0d832fd393bL46-R90)

Changes to the `examples/flex-flows/eval-code-quality/flow.flex.yaml`
and `examples/flex-flows/eval-code-quality/requirements.txt` files:

* Updated the `entry` field to use the `CodeEvaluator` class instead of
the `eval_code` function.
* Updated the requirements to use a specific version of the `promptflow`
package.

# All Promptflow Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [ ] Pull request includes test coverage for the included changes.
wangchao1230 and others added 11 commits April 22, 2024 18:50
# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.

# All Promptflow Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [ ] Pull request includes test coverage for the included changes.
@wangchao1230 wangchao1230 requested a review from a team as a code owner April 24, 2024 05:34
Stephen1993
Stephen1993 previously approved these changes Apr 26, 2024
0mza987
0mza987 previously approved these changes Apr 26, 2024
elliotzh
elliotzh previously approved these changes Apr 26, 2024
@0mza987 0mza987 dismissed stale reviews from elliotzh and themself via 13aaa8c April 26, 2024 12:25
0mza987
0mza987 previously approved these changes Apr 26, 2024
elliotzh
elliotzh previously approved these changes Apr 26, 2024
0mza987
0mza987 previously approved these changes Apr 26, 2024
@wangchao1230 wangchao1230 dismissed stale reviews from 0mza987 and elliotzh via e2032c5 April 26, 2024 13:18
elliotzh
elliotzh previously approved these changes Apr 26, 2024
0mza987
0mza987 previously approved these changes Apr 26, 2024
@elliotzh elliotzh dismissed stale reviews from 0mza987 and themself via 23aa8a5 April 26, 2024 13:56
@elliotzh elliotzh merged commit e756829 into main Apr 26, 2024
41 checks passed
@elliotzh elliotzh deleted the clwan/sample_1_10 branch April 26, 2024 14:30
crazygao pushed a commit that referenced this pull request May 6, 2024
Target changes:

- Flex flow:
- basic chat notebook sample update: init with ModelConfiguration,
aggregate
  - chat stream sample
- Prompty:
  - Prmpty format sample: text, json, all, stream

- [ ] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

- [ ] Pull request includes test coverage for the included changes.

---------

Co-authored-by: Clement Wang <clwan@microsoft.com>
Co-authored-by: Han Wang <wanhan@microsoft.com>
Co-authored-by: Han Wang <phoenix.seek@gmail.com>
Co-authored-by: zhen <henu_rz@163.com>
Co-authored-by: Ying Chen <chenyin@microsoft.com>
Co-authored-by: zhangxingzhi <zhangxingzhi@microsoft.com>
Co-authored-by: Honglin Du <0mza987@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Improvements on examples fundamental
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants