You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: local cross-encoder reranker in retrieval hot path #353
From SuperLocalMemory audit (docs/research/superlocalmemory-audit.md). SLM's own ablations show cross-encoder reranking is the single biggest contributor to their 74.8% LoCoMo score. Cortex currently has no reranker after fusion.
What
Add a local cross-encoder reranker (BAAI/bge-reranker-v2-m3) that runs after hybrid/RRF fusion, before returning final results. This re-scores the top candidates using a cross-attention model that sees both query and document together — fundamentally better than embedding similarity which encodes them independently.
Expected Impact
+4 to +10 F1 on LoCoMo conv-30 (currently 15.77% via cortex ask)
Implementation Notes
Run after fusion, before top-k selection
Score top ~20-30 candidates, return reranked top-k
Must work fully local (ONNX or similar runtime)
Add --rerank flag with auto-detection
Graceful fallback when reranker model not available
Activity