langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Improve ConversationKGMemory and its function load_memory_variables

Open misrasaurabh1 opened this issue 2 years ago • 0 comments

  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 @agihouse

misrasaurabh1 avatar Mar 26 '23 02:03 misrasaurabh1