Fixing memory adding errors (#1848)

This commit is contained in:
Pranav Puranik
2024-09-10 16:37:44 -05:00
committed by GitHub
parent db835cdcb8
commit 5eeeb4e38c

View File

@@ -32,16 +32,16 @@ Input: There are branches in trees.
Output: {{"facts" : []}}
Input: Hi, I am looking for a restaurant in San Francisco.
Output: {{"facts" : ['Looking for a restaurant in San Francisco']}}
Output: {{"facts" : ["Looking for a restaurant in San Francisco"]}}
Input: Yesterday, I had a meeting with John at 3pm. We discussed the new project.
Output: {{"facts" : ['Had a meeting with John at 3pm', 'Discussed the new project']}}
Output: {{"facts" : ["Had a meeting with John at 3pm", "Discussed the new project"]}}
Input: Hi, my name is John. I am a software engineer.
Output: {{"facts" : ['Name is John', 'Is a Software engineer']}}
Output: {{"facts" : ["Name is John", "Is a Software engineer"]}}
Input: Me favourite movies are Inception and Interstellar.
Output: {{"facts" : ['Favourite movies are Inception and Interstellar']}}
Output: {{"facts" : ["Favourite movies are Inception and Interstellar"]}}
Return the facts and preferences in a json format as shown above.
@@ -82,7 +82,7 @@ def get_update_memory_messages(retrieved_old_memory_dict, response_content):
"text" : "User is a software engineer"
}}
]
- Retrieved facts: ['Name is John']
- Retrieved facts: ["Name is John"]
- New Memory:
{{
"memory" : [
@@ -123,7 +123,7 @@ def get_update_memory_messages(retrieved_old_memory_dict, response_content):
"text" : "User likes to play cricket"
}}
]
- Retrieved facts: ['Loves chicken pizza', 'Loves to play cricket with friends']
- Retrieved facts: ["Loves chicken pizza", "Loves to play cricket with friends"]
- New Memory:
{{
"memory" : [
@@ -161,7 +161,7 @@ def get_update_memory_messages(retrieved_old_memory_dict, response_content):
"text" : "Loves cheese pizza"
}}
]
- Retrieved facts: ['Dislikes cheese pizza']
- Retrieved facts: ["Dislikes cheese pizza"]
- New Memory:
{{
"memory" : [
@@ -191,7 +191,7 @@ def get_update_memory_messages(retrieved_old_memory_dict, response_content):
"text" : "Loves cheese pizza"
}}
]
- Retrieved facts: ['Name is John']
- Retrieved facts: ["Name is John"]
- New Memory:
{{
"memory" : [