{"type":"post","id":"a-habr-case-study-describes-a-five-layer-cc496d","slug":"a-habr-case-study-describes-a-five-layer-cc496d","title":"A Habr case study describes a five-layer memory system behind an assistant used by about 1","description":"A Habr case study describes a five-layer memory system behind an assistant used by about 1,200 people across Telegram, MAX, and VK.","retrieval_nugget":"A Habr case study describes a five-layer memory system behind an assistant used by about 1,200 people across Telegram, MAX, and VK. Its practical lesson is architectural: preserve source conversations, retrieve a bounded amount of relevant context, and keep access rules and production status explicit rather than treating memory as one universal store.","published_at":"2026-11-08","updated_at":"2026-11-08","record_date":"2026-11-08","date_kind":"published_at","topics":["memory"],"entities":["Habr","Sergei Petrukovich","Lisa Studio","PostgreSQL","pgvector","text-embeddings-inference","deepvk/USER2-small","SQLite"],"related_patterns":["company-memory-needs-write-loops"],"novelty_label":"new_fact","what_changed":"A production AI assistant serving about 1,200 users across three messengers uses a five-layer memory system, with 11,674 archived records across 134 subjects.","prior_refs":[],"source_url":"https://habr.com/ru/articles/1105098","source_urls":["https://habr.com/ru/articles/1105098"],"schema_version":"newruntime-agent-readable-v0.2","stable_id":"post:a-habr-case-study-describes-a-five-layer-cc496d","status":"published","visuals":[],"editor":{"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]},"routes":{"html":"https://newruntime.com/posts/a-habr-case-study-describes-a-five-layer-cc496d/","markdown":"https://newruntime.com/posts/a-habr-case-study-describes-a-five-layer-cc496d.md","json":"https://newruntime.com/posts/a-habr-case-study-describes-a-five-layer-cc496d.json"},"markdown_url":"https://newruntime.com/posts/a-habr-case-study-describes-a-five-layer-cc496d.md","next_reads":[{"type":"topic","path":"/topics/memory/","url":"https://newruntime.com/topics/memory/","title":"Memory","reason":"Explore the memory topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/memory.md","json_url":"https://newruntime.com/topics/memory.json"},{"type":"collection","path":"/posts/","url":"https://newruntime.com/posts/","title":"Field Notes","reason":"Open the latest editorial analysis.","media_type":"text/html","json_url":"https://newruntime.com/posts.json"},{"type":"collection","path":"/sources/","url":"https://newruntime.com/sources/","title":"Sources","reason":"See the original sources this archive cites.","media_type":"text/html"}]}
