Portal Community

Core Properties

PropertyWorkingEpisodicSemanticProcedural
StorageIn-process RAMSQL ServerQdrant / PGVectorSQL Server
LifetimeOne turnConfigurable TTL (default 90 days)PersistentPersistent
Retrieval methodAlways included (pruned if too large)Recency or semantic search by userIdCosine similarity on query embeddingRegex pattern + embedding fallback
ScopeSingle turnPer agent + per userPer agent (collection)Per agent or shared across tenant
Written byWorkingMemoryManager (auto)Session close handler (auto)Document ingestion pipeline (manual/API)Admin or agent learning
Read byAll LLM callsMemoryOrchestrator per turnMemoryOrchestrator per turnMemoryOrchestrator per turn

Token and Cost Characteristics

Memory TypeToken CostRetrieval LatencyExtra LLM Calls
WorkingAll tokens; pruning required when over budget0 ms (in-process assembly)0 (unless Summarize pruning)
EpisodicLow — only snippets injected (configurable top-K)5–20 ms (SQL + optional embedding)Optional: 1 per session close (summary LLM call)
SemanticMedium — top-K chunk content injected10–50 ms (embedding + vector search)1 per turn (embed query)
ProceduralLow — one matched procedure injected2–5 ms (regex) or 10–30 ms (embedding)0 (regex) or 1 (embedding match)

When to Enable Each Type

Agent Use CaseWorkingEpisodicSemanticProcedural
Single-turn Q&A botAlways onNoYes (knowledge base)No
Customer service agent (returning users)Always onYesYes (policies, FAQs)Optional
Task automation agentAlways onOptionalOptionalYes
General assistantAlways onYesYesYes
Internal tool (no user continuity needed)Always onNoYesYes

Data Persistence and Backup

Memory TypePersists to DiskIncluded in BackupDeletable
WorkingNoNoN/A — gone on request end
EpisodicYes (SQL)Yes (SQL backup)Yes — per user or per session
SemanticYes (vector DB)Yes (Qdrant snapshots / PG backup)Yes — per document or full collection
ProceduralYes (SQL)Yes (SQL backup)Yes — deactivate or hard delete

Privacy Considerations

Memory TypeContains PII?User Erasure SupportCompliance Notes
WorkingPotentially (in messages)N/A — not storedNo persistence; no erasure needed
EpisodicYes — conversation contentYes — EraseUserDataAsyncGDPR Art. 17 right to erasure
SemanticDepends on documents indexedPer-document deletionDo not index personal data without consent
ProceduralNo — step definitions onlyN/A (no user data)No user data stored in procedures