Tell me what are the method to provide memory to Large language models during conversations, provide me also the code in python to implement this solutions Provide your response in exactly 3 paragraphs (separated nearby paragraphs with 3 aterisk symbols ***).
user