| title | Data Connections |
|---|
This guide helps you quickly enable conversation history storage with a backend that matches your environment.
- Completed the Getting Started guide
- SMG running with at least one worker
SMG supports these history backends via --history-backend:
memory(default): in-process, non-persistentnone: disable history storagepostgres: durable relational storageredis: fast key-value storage with optional retentionoracle: enterprise Oracle backend
smg \
--worker-urls http://worker:8000 \
--history-backend memorysmg \
--worker-urls http://worker:8000 \
--history-backend nonesmg \
--worker-urls http://worker:8000 \
--history-backend postgres \
--postgres-db-url "postgres://user:password@localhost:5432/smg" \
--postgres-pool-max-size 16smg \
--worker-urls http://worker:8000 \
--history-backend redis \
--redis-url "redis://localhost:6379" \
--redis-pool-max-size 16 \
--redis-retention-days 30Set --redis-retention-days -1 for persistent retention.
smg \
--worker-urls http://worker:8000 \
--history-backend oracle \
--oracle-wallet-path /path/to/wallet \
--oracle-tns-alias mydb_high \
--oracle-user admin \
--oracle-password "$ORACLE_PASSWORD"| Backend | Required flags |
|---|---|
memory |
none |
none |
none |
postgres |
--postgres-db-url |
redis |
--redis-url |
oracle |
--oracle-user, --oracle-password, and one of (--oracle-dsn) or (--oracle-wallet-path + --oracle-tns-alias) (omit user/password when --oracle-external-auth is set) |
You can provide Oracle credentials via environment variables:
ATP_WALLET_PATHATP_TNS_ALIASATP_DSNATP_USERATP_PASSWORDATP_EXTERNAL_AUTHATP_POOL_MINATP_POOL_MAXATP_POOL_TIMEOUT_SECS
curl http://localhost:30000/healthIf startup fails, SMG returns a config validation error (for example missing DB URL or Oracle credentials).
- Chat History Concepts — backend architecture and tradeoffs
- Configuration Reference — full storage flag reference