Document as the long-term Memory