fix(evaluator): avoid duplicating evaluator instructions - #708
fix(evaluator): avoid duplicating evaluator instructions#708asdaxzcwqsa wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughIn ChangesEvaluator prompt deduplication
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Problem
EvaluatorOptimizerLLM._build_eval_prompt()was embeddingself.evaluator.instructiondirectly into the evaluation prompt even though the evaluator LLM already receives that instruction through its own configured system prompt. That causes evaluator instructions to appear twice.Notes
This keeps the existing evaluation rubric intact while avoiding duplicate evaluator guidance in the user message.
Fixes #381
Summary by CodeRabbit
Bug Fixes
Tests