Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/docs/en/concepts/memory-and-knowledge.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Memory files are split into chunks of up to 1,000 characters and indexed for ful
| `memory_get` | Reads only the lines it needs from a memory file |
| `memory_expand` | Loads the full summary of a past session by ID |

The system prompt only tells the agent to use the memory tools it can actually call. If a tool profile or deny rule removes `memory_search`, the memory recall instructions are left out, and `memory_get` or `memory_expand` are only mentioned when they are allowed too.

Agents also get relevant memory without asking. Before each turn, dewee checks the user's message against past session summaries and adds up to 5 abstracts that score at least 0.3 to the system prompt, within about 200 tokens. Tune it with `auto_inject_enabled`, `auto_inject_threshold` and `auto_inject_max_tokens`.

## Consolidation
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/vi/concepts/memory-and-knowledge.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ File bộ nhớ được chia thành các đoạn tối đa 1.000 ký tự và
| `memory_get` | Chỉ đọc những dòng cần thiết trong một file bộ nhớ |
| `memory_expand` | Nạp toàn bộ bản tóm tắt của một session trước theo ID |

System prompt chỉ hướng dẫn agent dùng những tool bộ nhớ mà nó thực sự gọi được. Nếu một tool profile hoặc quy tắc deny loại bỏ `memory_search`, phần hướng dẫn gợi nhớ bộ nhớ sẽ bị bỏ qua, còn `memory_get` hoặc `memory_expand` chỉ được nhắc tới khi chúng cũng được cho phép.

Agent cũng nhận được bộ nhớ liên quan mà không cần hỏi. Trước mỗi lượt, dewee đối chiếu tin nhắn của người dùng với bản tóm tắt các session trước, rồi thêm tối đa 5 phần tóm lược có điểm từ 0,3 trở lên vào system prompt, trong giới hạn khoảng 200 token. Bạn điều chỉnh bằng `auto_inject_enabled`, `auto_inject_threshold` và `auto_inject_max_tokens`.

## Hợp nhất bộ nhớ
Expand Down
Loading