mirror of https://github.com/hwchase17/langchain
Improve ConversationKGMemory and its function load_memory_variables (#1999)
1. Removed the `summaries` dictionary in favor of directly appending to the summary_strings list, which avoids the unnecessary double-loop. 2. Simplified the logic for populating the `context` variable. Co-created with GPT-4 @agihousepull/2124/head
parent
a5bf8c9b9d
commit
c33e055f17
Loading…
Reference in New Issue