# Space Long-term Memory

## 1.Positioning

Spatial long-term memory simulates the long-term memory of the brain, and through the LLM capability, the key contents of the user's expression are extracted for storage and vectorisation. This feature aims to enhance the interaction capability and application value between the robot and the user. In particular, it has obvious advantages in continuous service, personalised experience and complex task processing.

* Upgrading personalized services:\
  Equipped with long-term memory, the robot can remember user profile information (e.g., name, occupation) & memory points (e.g., language style, frequently used functions), which facilitates the subsequent provision of customized responses and the establishment of anthropomorphic trust with users.\
  For example, if a user frequently asks for ‘simple language’, the robot will autonomously adjust its output style during the subsequent interaction;
* Improve task efficiency:\
  Supports pause and resume for multiple rounds of complex tasks, and automatic recall of historical data (e.g., address, contact information, name) to avoid repeated provision by the user;

## 2.Functions

### 2.1 Collection and storage of long-term memory

#### 2.1.1 Managing long-term memory of different users

Access to the **Space Long-Term Memory** through \[Space Resource Library] - \[Space Long-term Memory].

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2Fw82u5ZuirtVwEHgmp1RF%2Fimage.png?alt=media&#x26;token=09b2d9f9-c1f6-49d1-8c65-c17623445e69" alt=""><figcaption></figcaption></figure>

#### **2.1.1.1  Viewing**

Space long-term memory supports viewing long-term memory on a **user** dimension. Long-term memories of different robots and the same user share a common memory store, while long-term memories of different users are stored independently.

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FTZx3CZ9cPm4BBP9BLMV0%2F1742971369451_55090150-C3B6-43f2-B46F-44A19F1A0F90.png?alt=media&#x26;token=394f99c8-e86f-404f-a95a-e3cbb7ab8846" alt=""><figcaption></figcaption></figure>

#### 2.1.1.2 Batch Deletion

The ‘Batch Delete’ on the right side of the space long-term memory user page allows you to delete all the memories of multiple users in the space at one time, and the page cannot be viewed after the deletion.

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2Fi2BIOuUrNqryYFzo1p9p%2Fimage.png?alt=media&#x26;token=b0f7a4c5-f626-4fb5-a884-b195576adadc" alt=""><figcaption></figcaption></figure>

#### 2.1.2 Managing user profile & user memory point

#### 2.1.2.1 Add user profile information

&#x20;\[Space Resource Library] - \[Space Long-term Memory]-Click on the robot-Add(Supports both manual entry and upload import).

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FSkl6LNc6gYWk4uvvQgRP%2Fimage.png?alt=media&#x26;token=485de0f7-9af5-451c-b36e-9dd6ecd56e72" alt=""><figcaption></figcaption></figure>

* &#x20;Manual Entry: Manual addition/deletion of user profile information, up to a maximum of 200 lines. Manually entered information supports configuration to all robots in the same space;

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FKmli524GuE6jAAqpmynJ%2Fimage.png?alt=media&#x26;token=34a6ad27-f96b-4daf-8ca5-995730798d11" alt=""><figcaption></figcaption></figure>

* Upload Import: Supports batch import of user profile information according to the template, up to 200 lines. It supports the second customized deletion of the imported information before confirming the import.

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FFyYH5Y7s6DeDGPMackmN%2Fimage.png?alt=media&#x26;token=bdbd7967-5fba-4cfc-878f-699c3fdf6560" alt=""><figcaption></figcaption></figure>

#### 2.1.2.2 Batch delete user profile information & user memory point information

\[Space Resource Library] - \[Space Long-term Memory]-Click on the robot-Batch Operation-Tick the information that needs to be deleted in bulk

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FlNSDGXiGlpJzXOEt438p%2Fimage.png?alt=media&#x26;token=3d37e08c-3b87-4617-8ce3-c66dc3f88b41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FbBqsq6q0bgqrPA2ZZUUA%2Fimage.png?alt=media&#x26;token=85d7f549-fd48-4d7a-940c-9b9511f122c7" alt=""><figcaption></figcaption></figure>

### 2.2 Long-term memory in ordinary dialogue

#### 2.2.1  Viewing

When long-term memory is turned on in the Bot settings, the ‘Long-term Memory Summary’ button automatically appears at the top left of the dialogue box.

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FN3eqaaY9jKj8L006yqxY%2Fimage.png?alt=media&#x26;token=8b18cd7a-f672-4b7b-b8f3-2463d2ac4593" alt=""><figcaption></figcaption></figure>

Click on the button to view the dialogue log that is automatically summarised for the user. Displayed in days, in reverse chronological order, with specific times down to the second.

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2F2a1EakxvFubaNpNAdEvZ%2Fimage.png?alt=media&#x26;token=dae166db-4541-42de-95e2-5714f671e08b" alt=""><figcaption></figcaption></figure>

#### 2.2.2 Quoting

* Long-term memory is automatically vectorized after storage, and when the robot responds to a user prompt in the same round of the session, it will default to long-term memory retrieval and refer to the relevant content;

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2Fa0OBIgZCAQz6CVw7cWJ8%2Fimage.png?alt=media&#x26;token=4bc55dc6-35f5-4642-8841-840467d002f9" alt=""><figcaption></figcaption></figure>

* A new dialogue is created and long-term memory remains in effect.

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2FkhEB14ZMGozHEcx0E7Lq%2Fimage.png?alt=media&#x26;token=d0e710d1-a4f3-4f88-ab25-0e33b7a3a198" alt=""><figcaption></figcaption></figure>

* Click on the citation to view the citation (user profile information, user memory points are displayed here)

<figure><img src="https://1886561579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbXiJN0Eq6xgdmU34Ktv%2Fuploads%2F3oZ59LuUokOBkAakUK7i%2Fimage.png?alt=media&#x26;token=37fda20e-bd23-4d75-ac83-4e09f1d8af53" alt=""><figcaption></figcaption></figure>
