rkb retrieval stays files-first and needs no hand-written metadata on each lesson
PreferenceVerified 1 Oct 2026Holds project: rkb
Preference. A rule, why it holds, and how to apply it.
Rule#
Lessons are plain Markdown in git. Retrieval uses no database server. No hand-written retrieval metadata, such as queries: frontmatter, may be required on a lesson. At most it is optional.
Why#
The user calls it a design smell when every lesson needs extra queries. The model should infer the link from a symptom to a lesson.
How to apply#
- Put derived data, such as generated example queries or vectors, in a cache keyed by the hash of the lesson text. Then an edit, a merge or an archive invalidates it cleanly.
- Treat
queries:as a ranking aid that helps, never as a condition for a lesson to be found or injected.
Also found by searching
- do rkb lessons need a queries field
- can I add a database server for rkb retrieval
- where do I store generated example queries or vectors for rkb
- per-lesson retrieval metadata design smell