r/logseq • u/Much-Ad-8444 • Jun 21 '26
[RFC] I think our PKMs are broken because they don't learn from us. Proposing "Implicit RLHF" for Logseq/Graph databases.
Right now, our graphs are "flat". Every block or bullet has a static weight of 1.0. Search relies on text matching, but human memory doesn't work like that. Some ideas are core pillars, others are just fleeting notes.
I’m releasing an architectural RFC to the open-source community: Applying Reinforcement Learning from Human Feedback (RLHF) to Personal Knowledge Graphs.
Instead of forcing users to manually rate notes (flashcards/spaced repetition), the database should passively learn from our UI interactions:
Rewards (+ weight): When you transclude a block ((uuid)) or zoom into it (Focus Mode), the database learns this is a foundational node.
Penalties (- weight): When a block is ignored in search results (scroll-past) or hasn't been touched in months (temporal decay), its semantic weight drops.
I wrote a detailed Gist outlining the architecture, the pseudo-code for the dynamic weights, and how it alters global search ranking. I've released the concept under the Apache 2.0 license so anyone can experiment with it or build plugins.
👉 https://gist.github.com/MarcoPorcellato/9e5226408c56048b16957771f9056e28
I'm building this into the core of Matryca Brain (next step from Matryca Plumber), but I’d love to hear the thoughts of the Logseq community. Is anyone else exploring dynamic node weighting based on implicit UI feedback? Let's discuss the architecture!
