[Internal] Add @retrieval in _experimental as an experimental feature.
Description
Add a simple @retrieval in experimental to help user define retrieval spans.
Samle code:
def dummy_document(query):
return {"content": "This is a dummy document.", "score": random.random()}
@retrieval
def my_search(query):
return [dummy_document(query) for _ in range(3)]
Trace view:
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.
promptflow SDK CLI Azure E2E Test Result heta/add-retrieval-in-experimental
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 d391fdae.
:recycle: This comment has been updated with latest results.
SDK CLI Global Config Test Result heta/add-retrieval-in-experimental
6 tests 6 :white_check_mark: 1m 19s :stopwatch: 1 suites 0 :zzz: 1 files 0 :x:
Results for commit d391fdae.
:recycle: This comment has been updated with latest results.
promptflow-tracing test result
12 files 12 suites 7m 34s :stopwatch: 19 tests 19 :white_check_mark: 0 :zzz: 0 :x: 228 runs 228 :white_check_mark: 0 :zzz: 0 :x:
Results for commit e83ff699.
promptflow-tracing test result
12 files 12 suites 7m 50s :stopwatch: 19 tests 19 :white_check_mark: 0 :zzz: 0 :x: 228 runs 228 :white_check_mark: 0 :zzz: 0 :x:
Results for commit d391fdae.
:recycle: This comment has been updated with latest results.
promptflow-core test result
0 tests 0 :white_check_mark: 0s :stopwatch: 0 suites 0 :zzz: 0 files 0 :x:
Results for commit d391fdae.
:recycle: This comment has been updated with latest results.
Executor Unit Test Result heta/add-retrieval-in-experimental
796 tests 796 :white_check_mark: 3m 44s :stopwatch: 1 suites 0 :zzz: 1 files 0 :x:
Results for commit d391fdae.
:recycle: This comment has been updated with latest results.
Executor E2E Test Result heta/add-retrieval-in-experimental
243 tests 238 :white_check_mark: 5m 31s :stopwatch: 1 suites 5 :zzz: 1 files 0 :x:
Results for commit d391fdae.
:recycle: This comment has been updated with latest results.
SDK CLI Test Result heta/add-retrieval-in-experimental
4 files 4 suites 1h 2m 55s :stopwatch: 715 tests 674 :white_check_mark: 41 :zzz: 0 :x: 2 860 runs 2 696 :white_check_mark: 164 :zzz: 0 :x:
Results for commit d391fdae.
:recycle: This comment has been updated with latest results.
Hi, thank you for your interest in helping to improve the prompt flow experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment.
Hi, thank you for your interest in helping to improve the prompt flow experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment.
Hi, thank you for your contribution. Since there has not been recent engagement, we are going to close this out. Feel free to reopen if you'd like to continue working on these changes. Please be sure to remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.