← Blogi

Hyödyllisen agentin rakentaminen · Muisti

Miten muistoista tulee tietoa

28. heinäkuuta 2026 · 7 min lukuaika

Kun näet unta, kokemuksistasi tulee faktoja. Sama pätee agentteihimme.

Yöllä lampun valossa nainen turkoosi pehmokalmaripipo päässään lajittelee kasan käsin kirjoitettuja muistiinpanoja puiseen korttilaatikkoon ja hymyilee itsekseen.

Asiat, jotka tiedät, kuten että Pariisi on Ranskan pääkaupunki tai että lähiravintola tarjoilee torstaisin aina arrabbiataa, ovat kaikki peräisin kokemuksesta, joka on vakiintunut unen aikana.

factMaya has an upcoming offsite in Lisbon with Sara, for which she has booked flights, a three-night hotel stay, and a workshop room.
2026-07-19
Maya booked flights to Lisbon for the offsite with Sara.
2026-07-26
Maya booked the hotel in Lisbon for the offsite with Sara, three nights.
2026-08-02
Maya reserved a room for the offsite workshop in Lisbon.
A fact in an agent's memory, and the three moments it came from.

Edellisessä kirjoituksessa kerroimme, miten muistot syntyvät kokemuksista. Tässä kirjoituksessa kerromme, miten neokorteksi ryhmittelee nämä muistot löytääkseen faktoja ja toistuvia kuvioita.

Hippocampus
Encode
conversation → separate moments
Amygdala
Weigh
weight at capture
this post
Neocortex
Consolidate
moments → facts, nightly
Recall
Resurface
the right memory, per turn
The lit stage is this post, the nightly pass that turns the collected moments into facts. Capture was the previous post; recall comes next.

Mikä kuuluu yhteen

Unen aikana lajittelemme ja ryhmittelemme muistoja. Agenteillamme ryhmittely perustuu nimiin. Mayan matka on Lissabon, ystävä on Sara, ja jokainen matkaan kuuluva hetki kertoo sen. Nimi osoittaa yhteen tiettyyn asiaan riippumatta siitä, miten hetki on muotoiltu, kun taas sana kuten lennot esiintyy kaikkialla ja tarkoittaa joka kerta eri asiaa.

Maya booked flights to Lisbon for the offsite with Sara.
MayapersonSarapersonLisbonplace
Maya booked the hotel in Lisbon for the offsite with Sara, three nights.
MayapersonSarapersonLisbonplace
Maya reserved a room for the offsite workshop in Lisbon.
MayapersonLisbonplace
The same three moments from the opening figure, reduced to the names they mention. Maya, Sara and Lisbon come out, while the flights, the hotel and the room stay behind as generic words. The same names keep returning across the moments, and that is what the night groups on.

Nimet pisteytetään sen mukaan, kuinka usein ne esiintyvät: harvinainen nimi saa korkeamman arvon, mutta ainutkertainen tai liian yleinen jätetään pois. Ajatus on peräisin Hans Peter Luhnilta, joka käytti sitä vuonna 1958 tekstien tiivistämiseen säilyttämällä ne sanat, jotka kantavat merkittävää merkitystä.

weightkeptonceevery momentmentioned in more of the window →
Lisbon · 6 of 200weight 3.5
What a name is worth depends on how often it is mentioned. Only once and there is nothing to tie. In almost everything and it would tie everything, so it is set aside. In between, the rarer the name, the heavier it counts.

Sen jälkeen kahden hetken välisen siteen voi laskea niiden yhteisten nimien pisteiden summana. Yhteiset harvinaiset nimet tekevät siteestä vahvan, pelkkä yhteinen yleinen nimi heikon, ja pari, jolla ei ole mitään yhteistä, ei saa sidettä lainkaan.

Maya booked flights to Lisbon for the offsite with Sara.
Maya booked the hotel in Lisbon for the offsite with Sara, three nights.
Lisbonplace3.5in 6 of 200
+
Saraperson2.6in 15 of 200
=
6.1a strong tie
Maya moved the team dinner at Lucia's to Friday, so Sara can join.
Maya booked flights to Lisbon for the offsite with Sara.
Saraperson2.6in 15 of 200
=
2.6a weak tie
A strong and a weak tie, scored in a month window of two hundred moments. The flights and the hotel share Lisbon and Sara, and the two scores add up to a strong tie. The dinner and the flights share only Sara, who is around far more often, so their tie is weak. Maya is in nearly every moment, set aside, and adds nothing.

Sitten hetket ryhmitellään siteiden vahvuuden mukaan menetelmällä nimeltä Louvain. Ajatuksena on tehdä ryhmistä niin suuria kuin mahdollista niin, että kukin ryhmä pysyy silti tiiviimmin koossa kuin sattuma selittäisi. Vähän kuin kaveriporukat, jotka erotat isoissa juhlissa.

Lucia's · dinnerLucia's · dinner · Sara07-19Lisbon · Sara07-26Lisbon · Sara08-02Lisbon
Five moments and their ties. The night found two groups, a dinner group and a Lisbon group, each hanging together more strongly than chance would explain. Sara ties the two sides, but too thinly to pull them into one.

Faktan kirjoittaminen

Psykologiassa paljon tutkittu ilmiö on hajautusvaikutus: oppiminen tehostuu, kun opiskelukerrat jaetaan pidemmälle ajalle. Yhden kiireisen illan hetkistä koostuva ryhmä jää hetkiksi, mutta ajan mittaan hajautuneista hetkistä voi tulla faktoja. Poikkeus ovat korjaukset: ne tulevat voimaan jo samana yönä, koska kenenkään ei pitäisi joutua sanomaan niitä kahdesti.

Yöllinen läpikäynti näkee vain yhden päivän, mikä riittää korjauksiin ja painavimpiin hetkiin. Toistuvat kuviot tulevat esiin laajemmissa läpikäynneissä: edellinen kuukausi noin kerran viikossa ja kaikki noin kerran kuukaudessa.

Jokaisesta seulan läpäisevästä ryhmästä luomme nolla tai useampia faktoja. Fakta on yksi lause siitä, miten asiat ovat nyt, ja hetkien milloin ja miten on jätetty pois. Se voi olla maailmaa koskeva fakta, joka vain on, kuten että Pariisi on Ranskan pääkaupunki. Tapa, joka toistuu, kuten arrabbiata torstaisin. Tai tila, joka pitää paikkansa nyt mutta todennäköisesti muuttuu, ja se saa viimeisen voimassaolopäivän, jotta se voi jäädä eläkkeelle eikä vanhene paikalleen. Jokainen fakta myös viittaa takaisin hetkiin, joista se syntyi, samaan tapaan kuin jonkin tutun asian ajatteleminen palauttaa mieleen kerrat, jolloin opit sen. Näin agentti voi palata siihen, milloin ja missä se tapahtui.

what the model reads · one group · today: 2026-08-03
1 · 2026-07-19
Maya booked flights to Lisbon for the offsite with Sara.
2 · 2026-07-26
Maya booked the hotel in Lisbon for the offsite with Sara, three nights.
3 · 2026-08-02
Maya reserved a room for the offsite workshop in Lisbon.
what it answered
fact · statecites moments 1 · 2 · 3weight inherited from its heaviest moment
Maya has an upcoming offsite in Lisbon with Sara, for which she has booked flights, a three-night hotel stay, and a workshop room.
From a real run, one call per group. The model reads the group's dated moments plus today's date, and answers with a typed fact citing the moments that support it. This one is a state, an upcoming offsite is only true for now, so the fact carries an expiry.

Mielen muuttaminen

Joskus asiat muuttuvat, ja joskus agentti on ymmärtänyt väärin. Siksi jokaista uutta faktaa verrataan siihen, mitä agentti jo tietää. Saman asian sanominen uudelleen vain vahvistaa vanhaa faktaa. Ristiriidan ratkaisee se, kuka sen sanoi: käyttäjän korjaus voittaa sen, mitä agentti uskoi omin päin, ja uudempi näyttö voittaa vanhemman. Hävinnyt fakta jää eläkkeelle eikä sitä poisteta, ja siihen jää viittaus siihen, mikä korvasi sen. Ja joskus agentti perii väitteen takaisin ilman, että sillä on mitään uutta tilalle, jolloin fakta suljetaan.

correction
retired · supersededThe Tideline planning meeting with Sara is on Wednesday.
corrected by ↓
activeThe user's Tideline planning meeting with Sara is on Thursday.
retraction
retired · closedThe offsite budget was approved.
no replacement
Two ways the agent changes its mind. A correction retires the old fact and leaves a reference to what replaced it, so history is kept. A retraction closes the fact with nothing in its place.

Mitä yöstä jää jäljelle

Agentille jää kahdenlaisia muistoja. Hetket haalistuvat ajan myötä, tieto pysyy, kunnes jokin siirtää sen eläkkeelle. Kysy, missä viikkopalaveri pidetään, niin agentin ei tarvitse käydä läpi kuukauden torstaita: fakta on valmiina, ja sen takana olevat hetket ovat yhden askeleen päässä.

the knowledge · stands until retired
Maya has an upcoming offsite in Lisbon with Sara, for which she has booked flights, a three-night hotel stay, and a workshop room.from 07-19 · 07-26 · 08-02
The user's Tideline planning meeting with Sara is on Thursday.from 07-21
retired · supersededThe Tideline planning meeting with Sara is on Wednesday.
the moments · fade on their own schedule
2026-07-19
Maya booked flights to Lisbon for the offsite with Sara.
2026-07-21
The user corrected the meeting day: the Tideline planning meeting with Sara is Thursday, not Wednesday.
2026-07-26
Maya booked the hotel in Lisbon for the offsite with Sara, three nights.
2026-08-02
Maya reserved a room for the offsite workshop in Lisbon.
What the nights leave behind. On the left the knowledge, standing until something retires it, each fact pointing back to the moments behind it, one kept as history. On the right the month's moments, fading at their own speeds.

Tieto on kuitenkin hyödyllistä vain, jos se palaa mieleen kesken keskustelun. Se, miten agentti tuo oikean muiston esiin oikealla hetkellä, on seuraavan kirjoituksen aihe.

Hippocampus
Encode
done
Amygdala
Weigh
done
Neocortex
Consolidate
done · this post
next post
Recall
Resurface
the right memory, per turn
The map from the top of the post, flipped. Encoding, weighing and consolidating are behind us. What is left is recall, getting the right memory back into the conversation. That is the next post.