The context window is a container. Memory is what you decide to put in it. Almost every "memory" conversation conflates the two — here is how they actually work, and how to build a memory layer that does not bankrupt you.
Source: [Dev.to](https://dev.to/mryadavgulshan/llm-memory-vs-context-window-the-gap-nobody-explains-1mk6)