Assessment: Improve topic relevance settings handling in prefilter#952
Conversation
OpenAPI changes ⚪ No API surface changesNote This PR does not modify the API contract.
|
📝 WalkthroughWalkthrough
ChangesTR attachment_columns enable fix
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 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Issue
Closes #953
Summary
Topic relevance (TR) prefilter was only enabled when text
columnsand apromptwere configured. Configs using onlyattachment_columns(e.g. an answer sheet) with no textcolumnsresolvedtr_enabledtoFalse, silently skipping topic relevance.This change enables TR when either text
columnsorattachment_columnsare present, provided apromptis set.resolve_prefilter_settingsnow setstr_enabledbased on(tr_columns or tr_attachment_columns) and tr_prompt.Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.Notes
PR was opened from branch
hotfix/assessment-tr-fix. Single commit:fix(assessment): Improve topic relevance settings handling in prefilter.