mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
patch[experimental] Fix prompt in GenerativeAgentMemory
(#24771)
There is an issue with the prompt format in `GenerativeAgentMemory` , try to fix it. The prompt is same as the one in method `_score_memory_importance`.
This commit is contained in:
parent
2ba8393182
commit
4a05679fdb
@ -144,7 +144,7 @@ class GenerativeAgentMemory(BaseMemory):
|
||||
+ " following piece of memory. Always answer with only a list of numbers."
|
||||
+ " If just given one memory still respond in a list."
|
||||
+ " Memories are separated by semi colans (;)"
|
||||
+ "\Memories: {memory_content}"
|
||||
+ "\nMemories: {memory_content}"
|
||||
+ "\nRating: "
|
||||
)
|
||||
scores = self.chain(prompt).run(memory_content=memory_content).strip()
|
||||
|
Loading…
Reference in New Issue
Block a user