Define extraction rules for factual memories and user profiles
Memory rules define how memories are extracted, stored, and retrieved — including factual memory rules and profile rules. Each memory supports up to 50 factual memory rules and 50 profile rules.
Click View details on a memory card, then open the Memory rules tab.
Factual memory rules extract key events and information from conversations.
Profile rules persist structured user attributes.
Factual memory rules
Factual memory rules extract key events and information from conversations.
- Add a factual memory rule: In the Factual memory rules area, click Add factual memory rule.
-
Configure parameters:
Parameter Description Rule name Unique identifier for the extraction rule Rule instruction Extraction strategy. Choose Default (recommended) or Custom Auto update When on, the model updates memory content automatically. Default: on Expiry Memory validity period. Options: 7 days, 30 days, 180 days, never Version Pro (recommended, ¥0.03/call, Rerank enabled) or Lite (¥0.018/call, no Rerank). Defaults to Pro - Confirm: Click OK to save.
A preset "Default project" factual memory rule exists with 180-day expiry. It cannot be deleted but can be edited.
Profile rules
Profile rules persist structured user attributes.
- Add a profile: In the Profile rules area, click Add profile.
- Enter a rule name: Unique identifier for the profile rule.
-
Add profile fields: Click Add field, fill in the following, then click Save:
Field Description Field name Attribute to extract (e.g., age, occupation) Description Guides the model in extracting the attribute Initial value Default when the user hasn't provided info yet Version Pro (recommended, ¥0.03/call) or Lite (¥0.025/call). Defaults to Pro - Confirm: Click OK to save.
AddMemory — the system auto-extracts attributes. Results are visible in the Memory details tab.