How we built long-term memory for Alyx: why we chose a file over a knowledge graph

Over the last few months, I built long-term memory for Alyx, the AI engineering agent inside Arize AX. I started with a fairly sophisticated architecture (and coincidentally where most of the internet told me to start): vector retrieval, separate episodic and semantic stores, and a temporal knowledge graph.

What we ended up shipping is much smaller. Each user gets one structured text file for each Arize space they work in, capped at 8,000 characters, and Alyx reads the whole thing on every request.

I spent weeks building the more complicated version before arriving there, though. The interesting part was figuring out what Alyx actually needed to remember, how to keep that memory useful as it changed over time, how to keep the pipeline cost-efficient, and how to test whether memory was helping rather than quietly making the agent worse.