langchain
langchain copied to clipboard
Improve ConversationKGMemory and its function load_memory_variables
- Removed the
summariesdictionary in favor of directly appending to the summary_strings list, which avoids the unnecessary double-loop. - Simplified the logic for populating the
contextvariable.
Co-created with GPT-4 @agihouse