Skip to content

Memory Settings

Memory settings live in ~/.ptah/settings.json under the memory.* prefix. Edit them through Settings → Memory in the desktop app.

KeyDefaultWhat it does
memory.curatorEnabledtrueMaster kill-switch — when false, no extraction or resolution runs
memory.tierLimits.core50Cap on the core tier; oldest unused memory is demoted when full
memory.tierLimits.recall500Cap on the recall tier
memory.tierLimits.archival5000Cap on the archival tier
memory.decayHalflifeDays14Half-life of unused memories’ salience
memory.embeddingModelXenova/bge-small-en-v1.5Embedder (transformers.js, runs in a worker)
memory.curatorModelclaude-haiku-4-20251022LLM used by both curator and resolver stages
memory.searchTopK10Number of hits returned per query
memory.searchAlpha0.5RRF weight: 1.0 = pure BM25, 0.0 = pure vector

Memory state lives in ~/.ptah/ptah.db (shared SQLite database) across these tables:

  • memories — primary row per memory
  • memory_chunks — retrieval shards
  • memory_chunks_fts — FTS5 BM25 index
  • memory_chunks_vec — sqlite-vec embedding index