> ## Documentation Index
> Fetch the complete documentation index at: https://docs.profy.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# Memory

> Experts remember your preferences and historical context

Memory is the core capability that enables Expert personalization. Unlike typical chatbots that "forget everything once you close the window," Profy's Experts can **remember your preferences, decisions, and context across sessions**. Every conversation accumulates knowledge, making your Expert understand you better over time.

## Three Layers of Memory

Profy's memory system consists of three layers, each serving a different role:

<CardGroup cols={3}>
  <Card title="Memory List" icon="list">
    User-visible memory entries. You can view, edit, disable, or delete them — this is the "source of truth" for memory
  </Card>

  <Card title="Core Memory" icon="diamond">
    Key knowledge distilled by AI from the memory list. Organized as entities and facts, injected into every conversation
  </Card>

  <Card title="Memory Graph" icon="diagram-project">
    A visual projection of core memory. Displays relationships between entities and timelines in graph form
  </Card>
</CardGroup>

## Where Memory Comes From

### Automatic Extraction

This is the primary source of memory. After each conversation, the system automatically analyzes the dialogue and extracts valuable information:

* **Preferences you express**: "I prefer concise code style" "Please reply in English"
* **Decisions you make**: "We'll go with Option A" "Use React instead of Vue"
* **Important facts**: "My project uses Python 3.11" "The deadline is next Friday"

<Tip>
  Not all conversation content gets recorded. The system has quality gates — only information that is specific enough, durable, and non-obvious will be extracted.
</Tip>

### Manual Memory

You can also explicitly tell the Expert: "Remember, my team has a standup every Wednesday." The Expert will save this information using its memory tool.

### Creator Presets

Expert creators can preset foundational memories during the distillation process, ensuring the Expert has basic domain knowledge from the very first conversation with any user.

## How Memory Works

<Steps>
  <Step title="Conversation Accumulation">
    During your conversations with the Expert, the system records all interactions as raw material.
  </Step>

  <Step title="Automatic Extraction">
    After a conversation ends, AI analyzes the content and extracts memory entries that meet quality standards (specific enough, durable, non-obvious).
  </Step>

  <Step title="Knowledge Distillation">
    The system periodically performs "consolidation" on accumulated memory entries, distilling related information into more structured core memory: extracting entities, generalizing facts, and establishing relationships.
  </Step>

  <Step title="Injection into Conversations">
    In the next conversation, relevant memories are retrieved and injected into the Expert's context. This is how the Expert "remembers" what you said before.
  </Step>
</Steps>

## Managing Your Memory

You have full control over what the Expert remembers.

### Viewing Memory

In the "Memory" tab on the Expert page, you can see three sub-views:

| View             | Description                                                                                |
| ---------------- | ------------------------------------------------------------------------------------------ |
| **Memory List**  | A complete list of all memory entries, browsable in chronological order                    |
| **Core Memory**  | Key entities and facts distilled by AI, displayed in a more structured format              |
| **Memory Graph** | A visual graph of entity relationships, providing an intuitive view of knowledge structure |

### Editing Memory

You can modify the content of any memory entry. If the Expert remembered something incorrectly, simply edit it to correct it.

### Disabling Memory

If a memory entry isn't needed right now but might be useful later, you can **disable** it. Disabled memories won't be injected into the conversation context, but can be re-enabled at any time.

### Deleting Memory

If you want the Expert to completely forget something, you can **delete** that memory entry. Deletion is permanent and irreversible.

<Warning>
  Deletion and disabling are different operations. Deletion is permanent; disabling is reversible. Please confirm your intent before choosing.
</Warning>

## Memory Source Transparency

During conversations, when the Expert uses memory to answer your questions, the memory sources are annotated below the message. You can see which memories the Expert referenced and what type they are (preference, constraint, decision, etc.).

This transparency lets you judge whether the Expert's response is based on correct context. If the referenced memory is wrong, you can correct it directly in the memory list.

## Core Memory and Knowledge Graph

Core memory is structured knowledge distilled by AI from your memory entries, composed of **entities** and **facts**:

<AccordionGroup>
  <Accordion title="Entities">
    Entities represent key concepts in memory. They can be:

    * **People**: colleagues, clients, partners you mention
    * **Projects**: work projects you're involved in
    * **Tools**: software and tech stacks you frequently use
    * **Organizations**: companies or teams you belong to
    * **Concepts**: important concepts in your domain of expertise
    * And more types…
  </Accordion>

  <Accordion title="Facts">
    Facts are specific statements about entities, for example:

    * "User prefers TypeScript"
    * "Project X's deadline is end of August"
    * "Team uses Feishu for daily communication"

    Each fact has a temporal dimension — when it became valid and whether it's still valid.
  </Accordion>

  <Accordion title="Relations">
    Relations describe connections between entities:

    * "User → uses → TypeScript"
    * "Project X → belongs to → Company Y"
    * "User → prefers → concise style"

    In the memory graph, these relations are presented visually.
  </Accordion>
</AccordionGroup>

## Memory Evolution (Dream)

The system periodically performs "consolidation" on the Expert's memory — internally called Dream. The consolidation process includes:

1. Syncing newly added memory entries as evidence
2. Distilling new entities and facts from evidence
3. Handling contradictions — when new facts conflict with old ones, the old fact's validity period is closed and the new fact takes over
4. Updating relationships between entities

The consolidation process is fully automated; you don't need to trigger it manually.

<Tip>
  Memory consolidation does not modify or delete your original memory entries. It only distills more structured knowledge from them to improve conversation quality.
</Tip>

## Temporary Chat and Memory

If you enable "Temporary Chat" mode:

* The Expert **will not** read any existing memory
* Conversation content **will not** be extracted as new memory
* This conversation is completely transparent to the memory system

This is suitable for handling sensitive information or scenarios where you don't want the Expert to accumulate context.

## Next Steps

<CardGroup cols={2}>
  <Card title="Skills" icon="wand-magic-sparkles" href="/en/documentation/concepts/skills">
    Learn how skills give Experts domain-specific capabilities
  </Card>

  <Card title="Expert" icon="robot" href="/en/documentation/concepts/expert">
    Review the complete composition and lifecycle of an Expert
  </Card>
</CardGroup>
