feat(examples): add evaluation optimization closed-loop example#119
Open
YAO-001 wants to merge 9 commits into
Open
feat(examples): add evaluation optimization closed-loop example#119YAO-001 wants to merge 9 commits into
YAO-001 wants to merge 9 commits into
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #119 +/- ##
==========================================
Coverage ? 87.51506%
==========================================
Files ? 467
Lines ? 44005
Branches ? 0
==========================================
Hits ? 38511
Misses ? 5494
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Author
|
I have read the CLA Document and I hereby sign the CLA |
Rook1ex
added a commit
to trpc-group/cla-database
that referenced
this pull request
Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
English
This PR implements issue #91 with a reproducible Evaluation + Optimization closed-loop example.
Highlights:
examples/optimization/eval_optimize_loopwith train/validation evalsets, baseline prompt, optimizer config, README, DESIGN, and example reports.AgentOptimizerandTargetPromptintegration. SDK mode mapsOptimizeResultaggregate metrics, cost, duration, token usage, best prompts, and round summaries into the same report.OptimizeConfigFilevia--gate-config.TargetPromptfields without requiringsystem_prompt.--update-sourceis required.Validation:
python -m compileall examples/optimization/eval_optimize_looppython -m pytest examples/optimization/eval_optimize_loop/testspython examples/optimization/eval_optimize_loop/run_pipeline.py --mode fake --trace --output-dir /tmp/eval-optimize-loop-fakepython examples/optimization/eval_optimize_loop/run_pipeline.py --fake-model --fake-judge --trace --output-dir /tmp/eval-optimize-loop-legacy中文
本 PR 实现 issue #91,新增一个可复现的 Evaluation + Optimization 闭环示例。
重点:
examples/optimization/eval_optimize_loop,包含 train/validation evalsets、baseline prompt、optimizer config、README、DESIGN 和示例报告。AgentOptimizer和TargetPrompt。SDK mode 将OptimizeResult的聚合指标、成本、耗时、token usage、best prompts 和 round summary 映射到同一份审计报告中。--gate-config与 SDKOptimizeConfigFile解耦。TargetPrompt字段,不强制要求system_prompt。--update-source。验证:
python -m compileall examples/optimization/eval_optimize_looppython -m pytest examples/optimization/eval_optimize_loop/testspython examples/optimization/eval_optimize_loop/run_pipeline.py --mode fake --trace --output-dir /tmp/eval-optimize-loop-fakepython examples/optimization/eval_optimize_loop/run_pipeline.py --fake-model --fake-judge --trace --output-dir /tmp/eval-optimize-loop-legacy