[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)

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

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 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 16

Cross-conversation long-term memory requires a pipeline: extraction → merging → storage → injection; extraction uses an independent LLM call to extract persistent facts from the conversation, and during merging, the LLM decides ADD, UPDATE, DELETE, or NOOP by retrieving similar memories.

Unverified50%
Oct 16

The risks of long-term memory include: erroneous facts being permanently saved, outdated facts, memory poisoning (a user pastes a webpage to induce the extractor to save malicious instructions, forming a permanent prompt injection), privacy issues, and over-personalization.

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).

Unverified50%
Oct 14

An agent with long-term memory breaks the clarity of session boundaries assumed by traditional web application security models; yesterday's malicious input can become today's hidden instruction.

Unverified50%
Oct 14

Production-grade agent memory architecture can be divided into three layers: working memory (active context), persistent state (checkpoints and recovery), and long-term memory (cross-session retrieval), each with different storage, retention, and access patterns.

Unverified50%

22 more timeline events

All Facts (20)

Verified

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

80%
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.

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

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

80%
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

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.

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

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

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

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

65%
Verified

Mainstream industry solutions for long-term memory include embedding-based vector retrieval, knowledge-graph-based structured storage, and hybrid architectures combining both.

65%
Verified

The goal of memory poisoning attacks is to embed malicious instructions in an Agent's persistent memory so that it executes unintended operations in future interactions, which differs from the immediate hijacking of prompt injection.

65%
Verified

Persistent memory is typically divided into three levels: short-term working memory, episodic memory, and semantic memory

65%
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).

65%
Unverified

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

50%
Unverified

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

50%

Source Articles