🗂 تیپ #5
تفاوت حافظه کوتاهمدت و بلندمدت در ایجنتها
حافظه کوتاهمدت ایجنت چیزی جز پنجرهی بافت (context window) نیست: تاریخچهی گفتگو و نتیجهی ابزارها در طول یک تسک، که با پایان نشست پاک میشود. در مقابل، حافظه بلندمدت بیرون از مدل و در یک انبار واقعی مثل دیتابیس برداری، جدول کلید-مقدار یا فایل نگهداری میشود و فقط وقتی به آن نیاز باشد بازیابی میشود 🗂️. قاعدهی عملی این است که پنجرهی بافت را سبک نگه دارید و هر چیزی که باید بعد از نشست باقی بماند را با یک نوشتن صریح در حافظهی بیرونی ثبت کنید.
Short-Term vs. Long-Term Memory in AI Agents
Short-term memory is just the agent's context window: the running transcript of the current task, and it disappears the moment the session ends. Long-term memory lives outside the model in a real store (a vector DB, a key-value table, a file) and is pulled back in only when it is relevant 🗂️. The practical rule: keep the context window lean, and treat anything that must survive the session as an explicit write to external storage.
@dslanders
Post #5795
818