AI Cloud Architect

Improve chatbot memory using Google Cloud

GoogleHow-to by Aishwarya Prabhat and Yun PangGoogle Cloud Blog (developers and practitioners)

How to use Google Cloud solutions to solve two data challenges in AI: fast context updates for real-time chat, and efficient retrieval for long-term history.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Google Cloud's reference design for chatbot memory splits history across Memorystore for Redis (short-term), Cloud Bigtable (mid-term system of record) and BigQuery (long-term analytics), with Cloud Storage for media.

Who it is for

Architects building conversational agents at scale who need fast chat history loading and long retention.

Key points

  • Redis Lists with RPUSH store chat sessions so only the newest message is sent
  • Bigtable keys use user_id#session_id#reverse_timestamp; example policy keeps the last 60 days in the hot tier
  • Media files in Cloud Storage are served through signed URLs and referenced by URI pointers

The same at other vendors

Different approach

MicrosoftAnnouncement

Introducing Memory in Foundry Agent Service

AI:Microsoft's managed long-term memory store for agents is another route to the same chatbot memory need as Google's self-assembled split design.