MemoryItem
One remembered fact or one retrieved chunk: what Upmo knows, where it learned it, who it applies to and how to correct it.
When to use
Section titled “When to use”- Use it on the Memory page, which lists the facts the user and agents have taught Upmo. Use it in the agent’s memory tab. Use it in the “Recalled for this reply” drawer under a chat message or task step.
- Knowledge base documents themselves go in a
Table. A chunk pulled from one into a reply is a MemoryItem with theKnowledgebadge.
What the consumer provides
Section titled “What the consumer provides”text: the fact inbody,ink. It shows three lines at most, then truncates with “More”. A retrieved chunk may carry onemarkon the matched phrase.source: a link inbody-smink-mutedto the chat or task run it came from (“Learned in Daily finance digest · run 9”). For knowledge, it links to the document and page.scopeas aBadge:User,Workspace,Agent · name.Knowledgeuses the info variant, so it reads as a different kind of thing.- Optional
uses(“Used 14 times”). Optionalscore: 0 to 1, two decimals, tabular, only in retrieval views. OptionalsupersededAtfor a fact that was replaced. - Actions: Edit and Delete for facts the user owns. Remove (the X) for a recalled chunk, which drops it from the context of this reply only. Show history for a replaced fact.
Behaviour
Section titled “Behaviour”- Rows sit in a
surface-100list withborderandradius-lg. Each row has 12px padding above and below, and hover showssurface-hover. Actions areActionIcon sm subtle. They show on hover and focus, and are always visible on touch. - A replaced fact stays in the list in
ink-muted, with an outline “Replaced {date}” badge. The memory store is append-only: it only adds, it never edits in place. So “Delete” writes a tombstone, a deletion record that the history shows. - Edit opens the fact inline as a
Textareawith Save and Cancel. Saving creates a new fact that supersedes the old one. The row then shows “Learned in chat · today”. - Delete asks once in a
Modal(“Forget this fact?”). The toast offers Undo for 10 seconds. - The score never changes colour. It is a number in tabular figures. Sorting by score is the drawer’s job, not the row’s.
Tokens
Section titled “Tokens”surface-100, surface-hover, border, ink, ink-muted, emerald-deep (mark), info-soft and info (knowledge badge), radius-lg, body, body-sm.
Mantine
Section titled “Mantine”Paper withBorder radius="lg" holds a Stack gap={0} of rows. Each row is a Group align="flex-start" with Text, Badge, Anchor and ActionIcons. Inline edit is Textarea autosize. The “Replaced” badge is Badge variant="outline".