createExactTermReranker
@forge/monorepo / backend/src / createExactTermReranker
Function: createExactTermReranker()
createExactTermReranker():
Reranker
Defined in: backend/src/knowledge/retrieval.ts:475
A reranker that promotes chunks matching the query's rare exact terms.
Deliberately simple and deliberately not a model: this exists so AC-5's "switchable and measured" has something real to switch on, and so the measurement harness has a baseline that is better than nothing and obviously cheaper than a cross-encoder. It promotes a candidate containing a query term verbatim, which is the signal fusion is weakest on — a rank-based fusion cannot know that one of the two signals matched an exact identifier rather than a common word.