<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Agent Memory on AI Vault</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/</link><description>Recent content in Agent Memory on AI Vault</description><generator>Hugo</generator><language>vi</language><atom:link href="https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/index.xml" rel="self" type="application/rss+xml"/><item><title>Working Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/working-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/working-memory/</guid><description>&lt;p&gt;&lt;em&gt;Cửa sổ context đang hoạt động.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Mọi thứ model &amp;ldquo;thấy&amp;rdquo; ở lượt này: các tin nhắn hiện tại, system prompt, output của tool, và các&#10;bước suy luận. Đây là scratchpad của agent — và là bộ nhớ duy nhất model thực sự có, vì model&#10;stateless giữa các lần gọi.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; C[Client - web or app] --&amp;gt; W[Working memory - context window: messages, system prompt, tool outputs]&#10; W --&amp;gt; LLM[Model]&#10; W &amp;lt;--&amp;gt; CP[Checkpointer - thread id]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Luôn luôn — đây là mức nền mọi agent chạy trên đó, do&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/vi/building/agent-harness/"&gt;harness&lt;/a&gt; quản lý. Một &lt;em&gt;checkpointer&lt;/em&gt; gắn với thread&#10;id cho phép cuộc hội thoại dừng và resume.&lt;/p&gt;</description></item><item><title>Semantic Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/semantic-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/semantic-memory/</guid><description>&lt;p&gt;&lt;em&gt;Kiến thức bền lâu.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Một kho bền vững chứa sự kiện, sở thích, hồ sơ về người dùng hoặc chủ đề — những thứ cần tồn&#10;tại qua các phiên và được áp dụng nhất quán.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; A[Agent] --&amp;gt; S[Semantic memory - facts, preferences, profiles]&#10; S &amp;lt;--&amp;gt; DB[(Vector DB / profile store)]&#10; S --&amp;gt; U[Personalized, consistent answers]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Người dùng phải lặp lại chính mình qua các phiên, hoặc câu trả lời cần cá nhân hóa và nhất&#10;quán — mà không bắt user nêu lại cùng một context mỗi lần.&lt;/p&gt;</description></item><item><title>Episodic Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/episodic-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/episodic-memory/</guid><description>&lt;p&gt;&lt;em&gt;Trải nghiệm để học.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Bản ghi các sự kiện đã qua: hội thoại đầy đủ, kết quả tác vụ, thành công và thất bại, kèm&#10;timestamp. Đây là cách agent học từ lịch sử của chính nó thay vì xuất phát lại từ số không.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; E[Conversations, task runs, events] --&amp;gt; EM[Episodic memory - outcomes, successes, failures]&#10; EM &amp;lt;--&amp;gt; LOG[(Event log DB)]&#10; EM --&amp;gt; R[Recall past - learn - avoid repeats]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Agent lặp lại lỗi đã mắc, hoặc bạn cần một audit trail về chuyện gì đã xảy ra và vì sao.&lt;/p&gt;</description></item><item><title>Procedural Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/procedural-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/procedural-memory/</guid><description>&lt;p&gt;&lt;em&gt;Tri thức về cách làm việc.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Tri thức về &lt;em&gt;cách&lt;/em&gt; hoàn thành tác vụ: skills, workflow, mẫu dùng tool, và luật hành vi. Tool&#10;cho agent &lt;em&gt;năng lực&lt;/em&gt;; procedural memory cho nó &lt;em&gt;quy trình&lt;/em&gt;.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; T[Task or goal] --&amp;gt; P[Procedural memory - skills, workflows, rules]&#10; P &amp;lt;--&amp;gt; SK[(Skills / procedures store)]&#10; P --&amp;gt; X[Apply a known procedure]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Agent tự suy diễn lại cùng một quy trình mỗi lần chạy thay vì tái dùng một cái đã biết là tốt.&lt;/p&gt;</description></item><item><title>External Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/external-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/external-memory/</guid><description>&lt;p&gt;&lt;em&gt;Mang tri thức ngoài vào.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Tri thức giữ bên ngoài model trong một vector DB, lấy về lúc inference bằng similarity search.&#10;Đây &lt;em&gt;chính là&lt;/em&gt; &lt;a href="https://namphuongtran.github.io/ai-vault/vi/foundations/ground-in-data/rag/"&gt;RAG&lt;/a&gt;, nhìn qua lăng kính memory.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; Q[Question] --&amp;gt; Emb[Embed query] --&amp;gt; Sim[Similarity search]&#10; Sim --&amp;gt; DB[(Vector DB - embeddings, metadata, sources)]&#10; DB --&amp;gt; TopK[Top-K chunks] --&amp;gt; Ctx[Inject into context] --&amp;gt; LLM[Model answers]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Tri thức quá lớn để giữ trong context window và thay đổi thường xuyên — nên bạn tra khi cần&#10;thay vì nhồi sẵn vào.&lt;/p&gt;</description></item><item><title>Parametric Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/parametric-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/parametric-memory/</guid><description>&lt;p&gt;&lt;em&gt;Tri thức nằm trong trọng số.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Tri thức học được lúc huấn luyện và lưu thẳng trong trọng số model: ngôn ngữ, mẫu suy luận,&#10;kiến thức thế giới, sự kiện. Không cần truy xuất — nó &lt;em&gt;ở sẵn đó&lt;/em&gt;.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; Q[Question] --&amp;gt; LLM[LLM - parametric memory in weights: language, world knowledge, facts]&#10; LLM --&amp;gt; A[Answer - instant, no retrieval]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Bạn không &lt;em&gt;thêm&lt;/em&gt; nó lúc runtime — nó luôn có sẵn, là bộ nhớ nhanh nhất và rẻ nhất. Câu hỏi&#10;thiết kế là &lt;em&gt;dựa&lt;/em&gt; vào nó cho cái gì so với lấy từ ngoài.&lt;/p&gt;</description></item><item><title>Prospective Memory</title><link>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/prospective-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/vi/deep-dives/agent-memory/prospective-memory/</guid><description>&lt;p&gt;&lt;em&gt;Nhớ việc phải làm tiếp.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="là-gì"&gt;Là gì&lt;/h2&gt;&#10;&lt;p&gt;Các ý định tương lai và mục tiêu đã lên lịch mà agent đã cam kết nhưng chưa thực thi: pending&#10;task, goal stack, reminder. Đây là cách một agent long-horizon sống sót qua các lần bị ngắt.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; A[Agent - interrupted mid-task] --&amp;gt; Store[Prospective store - pending tasks, goals, reminders]&#10; Store --&amp;gt; Trig{Trigger - time or event}&#10; Trig --&amp;gt; Resume[Reload intent and continue]&lt;/pre&gt;&#10;&lt;h2 id="khi-nào-cần"&gt;Khi nào cần&lt;/h2&gt;&#10;&lt;p&gt;Agent long-horizon phải hành động theo sự kiện tương lai — không chỉ đáp lượt hiện tại — và&#10;các việc kéo dài qua các lần ngắt hoặc khởi động lại.&lt;/p&gt;</description></item></channel></rss>