Chuyển tới nội dung chính

Memory and Cache

Memory and Cache is a persistence layer that stores conversation history and context so AI agents can recall prior interactions across sessions. Without it, each conversation starts from scratch. In NPO Studio, Memory and Cache backends are registered under Configuration > Memory and Cache and assigned to agents, allowing them to maintain continuity and deliver more contextual responses.

Memory and Cache List

The Memory and Cache page displays all registered memory backends. Use SearchAll Types, and All Statuses filters to find entries. Toggle between card view and table view.

Each entry shows:

  • Name and cover image
  • DB Type — the database engine (PostgreSQL or Redis)
  • HOST : PORT — the connection URL
  • Status — Active or Inactive
  • Default badge — one entry can be marked as the default for new agents

Use the three-dot menu (⋮) on each entry to edit or delete.

Add Memory and Cache

  1. Click + Add Memory and Cache.
  2. Fill in the required fields and click Save.

FieldRequiredDescription
NameYesA unique name for the memory backend (e.g., Default PostgreSQL Memory).
Memory TypeYesThe database engine: PostgreSQL or Redis.
DB URLYesThe connection string (e.g., postgresql://user:pass@host:5432/db or redis://:mcp-test@redis-master:6327/0).
Upload CoverNoA custom cover image for the entry.
StatusNoToggle Active or Inactive. Defaults to Active.
Set as defaultNoWhen enabled, new agents will use this memory backend by default.

Edit Memory and Cache

  1. Click the three-dot menu (⋮) on the entry and select Edit.
  2. Update fields as needed.
  3. Click Save.

Delete Memory and Cache

  1. Click the three-dot menu (⋮) and select Delete.
  2. Type the exact name to confirm.
  3. Click Delete.