﻿---
title: Review and manage Memory
description: Check the lessons that Elastic nightshift saved from past investigations, check how useful each one was, and archive or delete memories that are wrong.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/context/memory
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
applies_to:
  - Serverless Observability projects: Preview
---

# Review and manage Memory
Memory stores the knowledge that Elastic nightshift saves after investigations, such as where the traces for a service are stored, or that a database problem affected a specific service. When a similar investigation happens, Elastic nightshift recalls the matching memories and starts from them.
Elastic nightshift writes and maintains Memory itself. You can check each memory and how useful it was, and archive the ones that are incorrect or outdated.
To open Memory, from the home page, select `boxes_vertical` → **Knowledge** → **Memory**.

## How to read the Memory tab

The **Memory** tab lists the lessons that Elastic nightshift has saved, and shows how often each one has helped.
- **Semantic Memory**: A map of the topics that your memories cover, such as a service name or `latency`. Tile size shows each topic's rank score, not a count of memories. Hover a tile to read its **Score** and how many memories it has. Select a tile to show only the memories about that topic, and **Clear all** to show all of them again.
- **Most proven**: The memories that helped most often.
- **Recently updated**: The memories that investigations wrote or changed most recently.
- **Sidebar**: Search with **Search memories**, filter by **All**, **Active**, or **Archived**, and select **Activity** to list recent changes.

Each memory shows two numbers:
- **% useful**: How often the memory helped when an investigation recalled it. Recent investigations count more than older ones: a recall's weight halves every seven days.
- **% confidence**: How much evidence backs that usefulness figure. It grows as more investigations recall the memory.

For example, a memory at **94% useful · 85% confidence** helped in almost every investigation that recalled it, and was recalled often enough to trust that number.
After the first investigation, Memory holds one or two lessons, such as how your telemetry is laid out. A memory starts at **0% useful · 0% confidence** because no investigation has recalled it yet.
To read a memory, select it. The details show its **Usefulness**, **Confidence**, **Updated** date, **Tags**, and the **Source task**, which links to the investigation that wrote it. A memory that Elastic nightshift merged from several others lists them under **Merged from**.

## How memories change

After each investigation, Elastic nightshift reviews the memories it recalled and the ones it wrote:
- It updates how useful each recalled memory was.
- It merges memories that say the same thing.
- It archives memories that it judges misleading.

An archived memory shows why it was archived: **merged into another memory**, **judged misleading**, or **archived by a person**. Archived memories are excluded from recall.

## Archive, restore, or delete a memory

You can't edit memories. When a memory is wrong, archive it. You need the privileges listed in [Grant access](/elastic/docs-content/pull/9663/solutions/observability/nightshift/privileges#nightshift-privileges-analyst).
1. On the **Memory** tab, select the memory.
2. Select **Archive**.

Investigations stop recalling it. To use it again, filter by **Archived**, open the memory, and select **Restore**.
To remove a memory for good, open it and select **Delete**, then **Delete permanently**. You can't undo this. Archive instead if you might need the memory again.
To tell Elastic nightshift what's right instead, add [custom context](/elastic/docs-content/pull/9663/solutions/observability/nightshift/context#nightshift-context-custom).

## Learn more

- [Wiki](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/context/wiki): Read the durable pages that every investigation loads.
- [How Elastic nightshift builds context](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9663/solutions/observability/nightshift/context): Compare Memory with the other types of context.
- [Cost and models](/elastic/docs-content/pull/9663/solutions/observability/nightshift/cost-and-models#nightshift-data): Find out where memories are stored and who can read them.