[KongchangAI]
ConceptLong-term Memory / 跨会话记忆 / 持久化记忆

Long-Term Memory

A component of the Agent memory mechanism referring to information persisted across sessions, such as user preferences and historical interaction patterns. It is typically stored in external databases or vector stores and dynamically retrieved into context to support personalized service.

Core Facts

Timeline (last 90 days)

Nov 24

Adaptive agents require long-term memory to persist work traces and learned skills and to support efficient retrieval and updating.

Unverified50%
Nov 17

For developers, the emergence of Muse suggests that task automation and long-term memory are current hot directions in AI applications.

Unverified50%
Nov 1

Long-term memory and KV cache solve problems at different levels: KV cache is a short-term computational optimization during inference, and the cache becomes invalid once the conversation is reset; long-term memory, by contrast, must decide which information is worth writing to persistent storage, in what structure to organize it, and how to retrieve it and inject it into context in subsequent conversations.

Unverified50%
Nov 1

Long-term memory is stored in separate storage, shared across sessions, and can be recalled at any time in any conversation.

Unverified50%
Oct 28

Long-term memory involves compliance issues around privacy and data retention periods, an unavoidable constraint in product design.

Unverified50%
Oct 25

The technical keys to companionship-type AI hardware include long-term memory, emotionally expressive speech synthesis, and the strategy design for proactively initiating interactions.

Unverified50%
Oct 20

Common practices for isolating long-term memory by user include metadata filtering by user ID in a vector database, creating a separate collection for each user, or enforcing tenant constraints at the retrieval layer.

Unverified50%
Oct 17

A complete memory module operates in three stages: before the task starts, read memory and inject it into the System Prompt; during task execution, use short-term memory to append to the message sequence; after the task ends, write new information back to persistent storage and clear the short-term memory.

Unverified50%
Oct 17

Information worth persisting typically includes three categories: user preferences and habits, key conclusions and decisions in tasks, and external knowledge; what is not worth writing into long-term memory includes intermediate reasoning processes, the raw logs returned by tools, and small-talk content.

Unverified50%
Oct 16

Two default practices for long-term memory: extraction should be placed asynchronously outside the reply path (because the facts of this conversation are already in this session's history); take a snapshot of memory at the start of each conversation (the memory block is placed before the history, and updating it midway would break the cache).

Verified65%

27 more timeline events

All Facts (20)

Verified

An Agent's memory mechanism is typically divided into two categories: short-term memory and long-term memory, with long-term memory requiring external persistent storage such as vector databases, relational databases, and graph databases.

90%
Verified

An agent's long-term memory can be subdivided into three categories: episodic memory, semantic memory, and procedural memory.

80%
Verified

长期记忆Agent通常基于RAG(检索增强生成)技术构建,通过向量数据库将信息转化为高维向量并持久化存储

80%
Verified

Long-term memory is typically implemented with the help of vector databases (such as Chroma, Pinecone, Weaviate, Milvus, etc.) to enable semantic retrieval.

80%
Verified

Enterprise-grade Agent systems typically introduce external memory modules (such as vector databases) to store long-term memory, in order to overcome context window limitations.

80%
Verified

Agent Skills 具备上下文感知、可组合性和自描述性三个关键特征

80%
Verified

Memory poisoning is an evolved form of prompt injection attack, in which an attacker induces an AI to write false information into long-term memory storage, thereby influencing the system's subsequent interactions with all users.

75%
Verified

Conversational recall benchmarks such as LoCoMo and LongMemEval measure question-answering ability over conversation history, rather than whether memory has changed the actual behavior of tool-using agents.

75%
Verified

LangGraph supports two storage modes: short-term memory (single-session context) and long-term memory (cross-session persistent storage).

75%
Verified

RAG(检索增强生成)是一种结合信息检索与生成式大模型的架构范式,模型生成答案前先根据用户查询从外部知识库检索最相关的文档片段,再将其作为上下文注入模型

70%
Verified

Large models lack true long-term memory; every conversation starts from scratch, and they can only compensate by relying on external databases such as RAG (Retrieval-Augmented Generation).

70%
Verified

Two default practices for long-term memory: extraction should be placed asynchronously outside the reply path (because the facts of this conversation are already in this session's history); take a snapshot of memory at the start of each conversation (the memory block is placed before the history, and updating it midway would break the cache).

65%
Verified

There are generally two approaches to implementing persistent memory: writing information as structured text to an external file and reading it back each round, or using a vector database for semantic retrieval.

65%
Verified

Long-term memory stores persistent facts that must survive across sessions and runs, such as project decisions, environment configurations, and edge cases.

65%
Verified

Conversational memory is stored in the form of memory summaries, which can become skewed as conversations grow, whereas global personalization instructions are hard-coded into the system prompt of every request and are not affected by memory degradation.

65%
Verified

An Agent's short-term memory is typically the large model's context window, which has limited capacity and will be truncated or compressed as the number of conversation turns increases.

65%
Verified

The author built a custom Memory Layer to handle short-term and long-term memory and continuously optimizes the CRUD algorithms.

65%
Verified

Incorrect memory retrieval can be worse than having no memory at all.

65%
Verified

If persistently stored context data is leaked, it could expose a user's complete work history and sensitive information, posing a privacy risk.

65%
Verified

AI has no true long-term memory; every conversation starts fresh, and this can only be addressed by connecting an external database.

65%

Source Articles