Spaces:
Running
Running
Commit History
-
feat: Cross-encoder search reranking with MiniLM-L-6
siddhm11- Add cross-encoder reranker service (app/reranker_bge_svc.py) using cross-encoder/ms-marco-MiniLM-L-6-v2 (22M params, ~200-400ms on CPU) - Integrate reranking as Step 4.5 in hybrid search pipeline (after RRF fusion, before title-match boost) for top-10 candidates - Eagerly load reranker model at startup with graceful fallback - Display BGE Rerank timing in search results UI - Fix Unicode charmap encoding crashes on Windows console (replace emoji/em-dash with ASCII in all print statements) - Fix pre-existing test bug: update search router mocks to return (ids, meta_dict) tuples matching return_meta=True contract - Fix UnboundLocalError from shadowed asyncio import in search function - Add unit tests for reranker service (3 tests) - Update CLAUDE.md and docs with architectural decision 207 tests pass, 0 failures.6ae50db