Personalization and Long-Term Memory › What Belongs in Memory (and What Does Not)
Language AI HandbookAll chapters Deciding what to store is more consequential than deciding where. We'll give a concrete rule.
Store a fact only if all four conditions hold:
- It is durable enough to outlive the current task. "Wants tonight's dinner at 7" is not durable. "Is vegetarian" is.
- The user expects and permits that use. A setting to remember preferences can make this explicit. Mentioning a medical issue in a question gives no profile-writing permission in this example.
- You can name a downstream consumer. If no retrieval scenario would use it, skip it.
- Its retention and deletion are defined. Every record must answer "when does this expire?" and "what key deletes it?". A fact with no lifecycle is a liability.
The complement is equally important. Do not store:
- Transient states such as "user asked a follow-up." Keep them within the session when needed.
- Inferred sensitive attributes the user never stated. Exclude inferred sensitive information from this memory policy. An explicit user statement still needs a permitted purpose, appropriate protection, and a retention rule.
- Third-party personal information without a distinct, authorized purpose and safeguards. In this example, omit it.
- Speculative extractions as active facts. Consider showing allowed but uncertain candidates for confirmation where the product supports it.
If you keep allowed candidates, give them an expiry and keep them out of ordinary retrieval. A review screen can show them to the user for confirmation. Repetition can justify a review, subject to the same consent and sensitivity rules.
Sensitivity tiers
Assign tiers according to the product's policy and the use of each record. This illustrative policy treats all user records as private.
- Tier 0 (routine settings) includes display units and language for this product.
- Tier 1 (ordinary preferences) includes permitted food or schedule preferences when the context is low risk.
- Tier 2 (sensitive attributes) requires extra controls. Health records or precise location may fall here.
- Tier 3 (excluded data) includes credentials, which this product omits from durable personalization.
The same field can carry different risk in another setting. A dietary preference can reveal sensitive information, so classification needs context. The code only admits its toy tiers 0 and 1.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!