Azure-Samples / Azure-Samples/rag-data-openai-python-promptflow
evaluate.py: missing pip package promptflow.azure
- 主要语言
- Python
- 星标
- 290
- 派生
- 152
- PR 合并指标
- 30 天内没有已合并 PR
描述
> Please provide us with the following information:
> ---------------------------------------------------------------
### This issue is for a: (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
### Minimal steps to reproduce
> follow instructions https://learn.microsoft.com/en-us/azure/ai-studio/tutorials/copilot-sdk-evaluate-deploy#run-the-evaluation-script
pip install is missing package promptflow.azure
this leads to an exception when running python evaluate.py
The documentation need to be updated:
pip install promptflow-evals
pip install promptflow.azure
### Any log messages given by the failure
>(.venv) PS C:\work\Azure-Samples\rag-data-openai-python-promptflow\tutorial> python .\evaluate.py
Traceback (most recent call last):
File "C:\Users\...\.venv\Lib\site-packages\promptflow\_sdk\_tracing.py", line 107, in validate
from promptflow.azure._utils._tracing import validate_trace_destination
ModuleNotFoundError: No module named 'promptflow.azure'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\work\Azure-Samples\rag-data-openai-python-promptflow\tutorial\evaluate.py", line 80, in
result, tabular_result = run_evaluation(
^^^^^^^^^^^^^^^
File "C:\work\Azure-Samples\rag-data-openai-python-promptflow\tutorial\evaluate.py", line 49, in run_evaluation
result = evaluate(
^^^^^^^^^
File "C:\Users\...\.venv\Lib\site-packages\promptflow\evals\evaluate\_telemetry\__init__.py", line 115, in wrapper
pf_client = PFClient(
^^^^^^^^^
### Expected/desired behavior
> pip install promptflow.azure
### OS and Version?
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
### Versions
>
### Mention any other details that might be useful
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从链接的 Copilot SDK 评估教程开始,将其中的安装命令与 tutorial/evaluate.py 进行比较,尤其关注 imports 和对 run_evaluation 的调用。更新文档中的设置,使其安装所需的软件包,然后按照教程操作并运行 python evaluate.py,以确认缺少 promptflow.azure 的错误已解决。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 52/100