[KongchangAI]
ConceptShort-term Memory / 会话内记忆 / 对话历史

Short-Term Memory

A component of the Agent memory mechanism referring to in-context information within a single session. It is implemented by appending conversation history to the prompt and is constrained by the context window token limit. Common management strategies include sliding window and summary compression.

Core Facts

Timeline (last 90 days)

Oct 17

Short-term memory (the messages list) lives as long as the process and disappears when the process ends, and it cannot grow indefinitely due to the model's context window limit.

Unverified50%
Oct 17

Short-term memory includes SystemMessage, UserMessage, AIMessage, and ToolMessage, and has three characteristics: it is easily lost, has limited capacity, and can be read directly.

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

When short-term memory exceeds the context window, there are three common handling approaches: sliding window, summary compression, and external offloading, and the engineering implementation is not complicated.

Unverified50%
Sep 12

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

Verified65%
Sep 12

Short-term memory is a storage state, while context is a received state after transmission; the two are different concepts.

Unverified60%
Sep 12

Short-term memory refers to the historical information stored on the Agent's side.

Unverified50%
Sep 12

The core logic of an Agent's memory mechanism is to save previous chat history and send it together with the next request to the large model.

Unverified60%
Sep 6

Short-term memory generally retains the raw content of the most recent 5–10 conversation turns and triggers a compression summary when the threshold is exceeded.

Unverified50%
Aug 28

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.

Verified80%

All Facts (12)

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

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

80%
Verified

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

65%
Unverified

Short-term memory is a storage state, while context is a received state after transmission; the two are different concepts.

60%
Unverified

The core logic of an Agent's memory mechanism is to save previous chat history and send it together with the next request to the large model.

60%
Unverified

Short-term memory (the messages list) lives as long as the process and disappears when the process ends, and it cannot grow indefinitely due to the model's context window limit.

50%
Unverified

Short-term memory includes SystemMessage, UserMessage, AIMessage, and ToolMessage, and has three characteristics: it is easily lost, has limited capacity, and can be read directly.

50%
Unverified

When short-term memory exceeds the context window, there are three common handling approaches: sliding window, summary compression, and external offloading, and the engineering implementation is not complicated.

50%
Unverified

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.

50%
Unverified

Short-term memory refers to the historical information stored on the Agent's side.

50%
Unverified

Short-term memory generally retains the raw content of the most recent 5–10 conversation turns and triggers a compression summary when the threshold is exceeded.

50%

Source Articles