fix(rewrite): place input text strictly after intensity and style clauses (#337) - #340
poorvith-mp wants to merge 5 commits into
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository: guillaumemeyer/watermarks-remover/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
ChangesPrompt placement
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The prompt-placement change correctly keeps rewrite instructions ahead of the source content, with no concrete merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
ef2b74a to
b7eafaa
Compare
b7eafaa to
73c6c4c
Compare
Fixes #337.
What
In �uild_prompt() (service/scripts/rewrite_text.py), ensure that the input {text} is always positioned strictly after all instruction, intensity, and style clauses at the end of the prompt (after \n\n---\n).
Why
When combining a tactic with an intensity level (e.g. paraphrase@0.8) or --style, _intensity_clause and _style_clause were previously appended after {TEXT}. As reported in #337, models would frequently treat the trailing instructions as part of the source content to rewrite or echo meta-commentary back.
Tests
Summary by CodeRabbit
Bug Fixes
Tests