{
  "database": {
    "host": "/specmem/specmem/run",
    "port": 5432,
    "database": "specmem",
    "user": "specmem",
    "password": "",
    "maxConnections": 20,
    "idleTimeout": 30000,
    "connectionTimeout": 5000
  },
  "embedding": {
    "model": "text-embedding-3-small",
    "batchSize": 100,
    "cpuLimit": 1
  },
  "consolidation": {
    "autoEnabled": false,
    "intervalMinutes": 60,
    "minMemoriesForConsolidation": 5,
    "similarityQueryLimit": 1000,
    "temporalQueryLimit": 500,
    "tagBasedQueryLimit": 50,
    "importanceQueryLimit": 200
  },
  "storage": {
    "maxImageSizeBytes": 10485760,
    "allowedImageTypes": [
      "image/png",
      "image/jpeg",
      "image/webp",
      "image/gif"
    ]
  },
  "logging": {
    "level": "info",
    "prettyPrint": false
  },
  "watcher": {
    "enabled": true,
    "rootPath": "/specmem",
    "debounceMs": 1000,
    "autoRestart": true,
    "maxRestarts": 5,
    "maxFileSizeBytes": 1048576,
    "autoDetectMetadata": true,
    "queueMaxSize": 10000,
    "queueBatchSize": 50,
    "queueProcessingIntervalMs": 2000,
    "syncCheckIntervalSeconds": 45
  },
  "sessionWatcher": {
    "enabled": true,
    "debounceMs": 2000,
    "importance": "medium",
    "additionalTags": []
  },
  "container": {
    "enabled": true,
    "image": "ghcr.io/jonhardwick-spec/specmem-brain:latest",
    "memory": "4g",
    "cpus": "2",
    "runDir": "/specmem/specmem/run"
  },
  "compression": {
    "enabled": true,
    "minLength": 50,
    "threshold": 0.8,
    "compressSearchResults": true,
    "compressSystemOutput": true,
    "compressHookOutput": true
  }
}