fix(worker): preserve distinct image placements in cheap image de-duplication#888
Conversation
Update enrich-documents to use imagePlacementDedupeKey with pageNumber, and skip cheap placement de-dupe when bbox is missing or malformed so distinct unknown placements are not collapsed into one shared key. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughImage deduplication now uses normalized image placement alongside hash, source kind, and page number. Unknown or malformed bounding boxes do not produce dedupe keys. Existing-image classification and worker uploads use the placement-aware behavior. ChangesImage placement deduplication
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…lacement-dedupe-1ae0 Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Capture the reviewed screenshot-queue outcomes, supersessions, and hosted/local checks used for the safe merge pass. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Summary
Verification
npm run test -- --run tests/image-filtering.test.ts(21 passed)npm run verify:pr-localdeferred; offline unit proof covers the dedupe contract and CI Static/Unit/Build gates apply on this PR.Risk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
Summary by CodeRabbit