We present a computational framework designed to provide adaptive support aimed at triggering learning from problem-solving activities in the presence of worked-out examples. The key to the framework’s ability to provide this support is a user model that exploits a novel classification of similarity to infer the impact of a particular example on a given student’s metacognitive behaviors and subsequent learning.