A learned feedback memory for rkb retrieval is a separate opt-in backend with strict limits
DecisionVerified 1 Oct 2026Holds project: rkb
Decision. The context, the choice, why, and the options that were turned down.
Context#
Idea: save embeddings of failures where rkb_used worked or irrelevant was recorded, and use them to boost ranking. The user worries that it drifts into bias. The research the session found says implicit feedback has selection and position bias, rich-get-richer effects and reinforced wrong labels. It is not implemented yet.
Decision#
Make it a separate opt-in backend, never part of the pure bm25-bert default. Give it these limits:
- A small capped boost. It never creates a match alone.
- A cap on vectors per lesson. The oldest expire. A lesson's vectors are deleted when its text changes.
- Count only
workedwith recorded evidence, not bare "injected". - Keep it on the local machine, not in the synced KB, because failure text can hold paths and secrets.
- A command to list and remove entries.
- Judge it only on a frozen labeled set. Do doc2query first, with queries kept in a separate field, since it has no feedback loop.
Why#
Bias in implicit feedback is the stated risk. The default backend must stay predictable.
Rejected options#
Feedback memory inside the default bm25-bert backend.
Also found by searching
- should rkb learn from rkb_used worked records to rank lessons
- can saved failure embeddings boost the bm25-bert ranking
- how do I add feedback memory to rkb retrieval without bias
- doc2query or feedback memory first for rkb retrieval