-
[Internal][Executor] Refactor batch result for batch engine (#1208)
发布于
2023-11-22 07:11:17 +00:00 Description
Refactor batch result for batch engine
{ "status": "completed", "total_lines": 5000, "completed_lines": 4900, "failed_lines": 100, "node_status": { "node1.completed": 5000, "node2.completed": 4999, "node2.failed": 1 }, "start_time ": "2023-01-01T00:00:00Z", "end_time": "2023-01-01T01:00:00Z", "metrics": { // aggregation node’s metrics. "metric1": "Value1", "metric2": "Value2" }, "system_metrics": { "completion_tokens": 10, "prompt_tokens": 250, "total_tokens": 260, "duration ": 29720.352985, // By second }, "error_summary": { "failed_user_error_lines": 50, "failed_system_error_lines": 50, "error_list": [ { "line_number": 0, "error": { } // Detail error dict, contains error code/message/message format/additional info and so on }, { "line_number": 1, "error": { } // Detail error dict, contains error code/message/message format/additional info and so on } ] } }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.
下载附件