Give your AI agent a memory that cites its sources