Retrieval experiments rkb already tried and rejected
DecisionVerified 1 Oct 2026Holds project: rkb
Decision. The context, the choice, why, and the options that were turned down.
Context#
The rkb search and the hooks were tested on a small eval of real logged failures, with labels from a model. Several ideas were tried.
Decision#
Do not repeat these without a new reason:
- The Laya 0.4B reranker was worse than plain BM25 and was removed.
- Splitting a lesson into sections that are embedded as separate vectors made abstention worse.
- Generated doc2query-style queries pasted into the lesson text or into BM25 hurt. Embedding them as separate vectors, scored with max-sim, helped.
- Fine-tuning modernbert-embed-base on about 540 synthetic pairs did not generalize to held-out lessons.
- Other small embedders alone (arctic-embed, mxbai-embed, MiniLM, e5-small, granite-small-r2) were worse than modernbert-embed-base.
Why#
- Short pieces over-match, so section vectors weaken the "no lesson fits" signal.
- The evidence is a small, model-labeled eval, so treat these results as hints, not proof.
Rejected options#
All five items above are the rejected options. See Laya asks whether the lesson is about the same problem for the Laya prompt.
Also found by searching
- should I try a Laya reranker for rkb again
- fine-tune modernbert-embed-base on synthetic pairs for rkb
- embed lesson sections as separate vectors
- which small embedder is best for rkb retrieval