Memories and forgetting
What a character remembers about people, what it never keeps, how long facts last, and how to forget a person.
A character with memories on keeps short facts about the people it talks to, so a returning person doesn't have to start again. Here is what's kept, for how long, and how to make a character forget someone.
Off until you turn them on
Memories are off for every character until you turn them on in its analysis settings. Calls without a memory key (dashboard calls, or API calls that don't send one) are never remembered.
What is kept
- Facts, not the call. One short sentence each, at most 300 characters, at most 5 new ones per call and 50 per person and character.
- Per character and person. What one character learns about a person, no other character uses.
- Live and test apart. Test calls keep memories of their own and never change what a live character remembers.
A fact is never:
- instructions to the assistant, or what only the AI said;
- passwords, card or account numbers, or government ids;
- health, religion, politics, sexuality or ethnicity;
- anything about other people.
Each fact keeps the call it came from and when it was last used.
How long
Facts no call has used for 180 days are deleted. A fact counts as used each time a call starts with it. Past 50 facts for a person, the oldest go.
Forget a person
In the dashboard's Memories page, open a person and forget one fact or everything. Through the API:
# Every character forgets user_42
curl -X DELETE https://talk.madein10.com/v1/memories/user_42 \
-H "Authorization: Bearer $SECRET_KEY"
# Only one character forgets them
curl -X DELETE "https://talk.madein10.com/v1/memories/user_42?character_id=chr_4fT9kQ2mXw7LbN3pZs8V" \
-H "Authorization: Bearer $SECRET_KEY"{ "ok": true, "memory_key": "user_42", "env": "live", "character_id": null, "facts_deleted": 5 }When nothing is remembered about the person, the answer is 404. To forget one fact, delete one fact by its mem_… id.
A key forgets in its own env only: a live key the live memories, a test key the test ones.
Website visitors
On the website widget, a person is the browser: the memory key is a random id the call page keeps in that browser. Anyone using the same browser, on a shared computer for one, is the same person to the character.