Where is the memory of the ai stored?

Where is the memory of the ai stored?