Update From Short-Term to Mid-Term Memory

STM · recent turnsqueue of pages · FIFOoldest page spills · match scoreMTM · topic folderspages by topic · heat · evictheat > τ · promoteLPM · personauser · agentretrieveall three tiers → promptgenerateLLM → answer → new page
STM · fixed-length queue of 7 pages oldest ← · · · → newest p2squirrelsweek 1 p3ran lapsweek 1 p4movieweek 2 p5cinemaweek 2 p6pastaweek 3 p7gymweek 3 p8flightweek 3 queue is full (7 / 7) MTM · topic folders (segments) folder A · wetland park outing summary: a visit to the wetland park, beautiful scenery keywords K = { park, wetland, scenery, visit } p1only the page that left the queue so far folder B · work deadlines (before week 1) summary: a report due at the end of the month keywords K = { report, deadline, work, month } p−4p−3 p9the park?week 4 push p2squirrels FIFO · the oldest page leaves the queue and moves to mid-term memory match score F = cos( efolder, epage ) + Jaccard( Kfolder, Kpage ) embedding similarity + keyword overlap |K∩K| / |K∪K| · join when F > θ = 0.6 p2 vs folder A: 0.74 + 0.33 = 1.07 p2 vs folder B: 0.08 + 0.00 = 0.08 F = 1.07 F = 0.08 p2 > θ → join A LLM refreshes folder summary + keywords otherwise · new folder no folder with F > θ → the page opens a folder of its own, with its own LLM summary and keyword set (p1 opened folder A this way one turn earlier, when p8 arrived)
15 / 25