Repository navigation
Fix: Preserve filtered components in scoring logic - #1
Conversation
… preserve filtered data
|
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 (1)
📝 WalkthroughWalkthroughThe ChangesPrompt Data Sanitization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
There was a problem hiding this comment.
Pull request overview
This PR tightens the prompt-preparation step in tender_extraction.scoring so the LLM scoring summary uses cleaned tender data instead of passing through blank or malformed deliverables/components. In the broader pipeline, that improves the quality of the extracted context sent into match scoring.
Changes:
- Filters
scope_of_work.deliverablesdown to non-empty strings before joining them into the prompt. - Filters
technical_specifications[*].componentdown to non-empty stripped strings before building the component summary. - Preserves the cleaned component list when constructing the tender summary used by scoring.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
componentsin scoring.pycomponents_listis preservedThis fix prevents overwriting of cleaned component data, leading to more accurate evaluation.
Summary by CodeRabbit