microsoft / promptflow

Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
https://microsoft.github.io/promptflow/
MIT License
8.43k stars 725 forks source link

feat: pf flow serve support for directory with 1 and only 1 prompty #3235

Closed elliotzh closed 2 weeks ago

elliotzh commented 2 weeks ago

Description

Support passing a directory without flow.dag.yaml nor flow.flex.yaml but with 1 and only 1 prompty in it as source in pf flow serve.

image

App support is already done by support prompty in init_executable, so this PR is mainly focus on changes in cli.

Note that this is not a full support for prompty in pf flow serve as there can usually be multiple prompty in 1 directory. We will need to figure out this in next release.

All Promptflow Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines

github-actions[bot] commented 2 weeks ago

promptflow SDK CLI Azure E2E Test Result zhangxingzhi/serve-support-for-prompty

  4 files    4 suites   4m 11s :stopwatch: 242 tests 205 :white_check_mark:  37 :zzz: 0 :x: 968 runs  820 :white_check_mark: 148 :zzz: 0 :x:

Results for commit 0ff4fe6a.

github-actions[bot] commented 2 weeks ago

SDK CLI Global Config Test Result zhangxingzhi/serve-support-for-prompty

6 tests   6 :white_check_mark:  1m 17s :stopwatch: 1 suites  0 :zzz: 1 files    0 :x:

Results for commit 0ff4fe6a.

github-actions[bot] commented 2 weeks ago

promptflow-core test result

0 tests   0 :white_check_mark:  0s :stopwatch: 0 suites  0 :zzz: 0 files    0 :x:

Results for commit 0ff4fe6a.

github-actions[bot] commented 2 weeks ago

Executor Unit Test Result zhangxingzhi/serve-support-for-prompty

796 tests   796 :white_check_mark:  3m 44s :stopwatch:   1 suites    0 :zzz:   1 files      0 :x:

Results for commit 0ff4fe6a.

github-actions[bot] commented 2 weeks ago

Executor E2E Test Result zhangxingzhi/serve-support-for-prompty

243 tests   237 :white_check_mark:  5m 45s :stopwatch:   1 suites    5 :zzz:   1 files      1 :x:

For more details on these failures, see this check.

Results for commit 0ff4fe6a.

github-actions[bot] commented 2 weeks ago

SDK CLI Test Result zhangxingzhi/serve-support-for-prompty

    4 files      4 suites   1h 2m 50s :stopwatch:   719 tests   677 :white_check_mark:  42 :zzz: 0 :x: 2 876 runs  2 708 :white_check_mark: 168 :zzz: 0 :x:

Results for commit 0ff4fe6a.

:recycle: This comment has been updated with latest results.