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
Add reranking step to search pipeline (local cross-encoder) #618
Both MemMachine and Backboard use rerankers to boost retrieval quality. MemMachine uses Cohere rerank-v3-5 (cloud) and saw significant accuracy improvements. We should add reranking to BM search.
Proposal: Tiered Reranking
1. Cloud (BM Cloud subscribers)
Server-side reranking on Fly.io infrastructure
Cohere reranker or self-hosted cross-encoder model
Zero config for the user — just works when using Cloud
Natural upsell: 'Basic Memory search is already 86% on LoCoMo. Cloud reranking takes it further.'
2. Local via OpenAI-compatible API key
User provides an API endpoint (OpenAI, Ollama, LM Studio, any OpenAI-compatible provider)
BM sends top-K candidates to the reranking endpoint
Reranker rescores each candidate against the original query using cross-attention
Return top-N reranked results (N=5-10, what the user asked for)
Cross-encoders process query+document together (unlike bi-encoders which encode separately), capturing fine-grained relevance. They're slower but much more accurate — perfect for reranking a small candidate set.
Models to Evaluate
Cohere rerank-v3-5 (cloud, what MemMachine uses)
BAAI/bge-reranker-v2-m3 (runs via Ollama/vLLM locally)
Activity
claude commentedon Feb 27, 2026
Claude encountered an error —— View job
I'll analyze this and get back to you.
feat(search): add optional cross-encoder reranker stage