You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Bharatram-Natarajan January 20, 2025
Hi all,
'excludes' parameter in client.add seems not to work consistently.
This is the example provided for your reference
conversation_info = [
{"role": "user", "content": "hi, i need help with my laptop. Its not turning on. Regards priya Staff data scientist xyz company"},
{"role": "assistant", "content": "what kind of issue is being faced?"},
{"role": "user", "content": "The screen is blank.i tried pressing the start button multiple times. priya Staff data scientist xyz company"},
{"role": "assistant", "content": "Try holding the power button for 5 seconds. As the system would have gone to sleep mode."},
{"role": "user", "content": "Tried the same.Not helpful. priya Staff data scientist xyz company"},
{"role": "assistant", "content": "Ok. let me check what else can be done?"},
]
We looked into this issue, and here is what we found:
The excludes parameter provided specifies "personal information", which is quite broad and can be interpreted in different ways. Typically, personal information refers to sensitive data like bank account details or social security numbers. However, in some cases, it may also include names, job titles, or other identifiers.
To achieve the expected behavior, we refined the exclusion criteria to "personal information such as name", and this successfully removed the personal details from memory. We might have to specify exclusions more explicitly to get the desired outcome.
Discussed in #2163
Originally posted by Bharatram-Natarajan January 20, 2025
Hi all,
'excludes' parameter in client.add seems not to work consistently.
This is the example provided for your reference
conversation_info = [
{"role": "user", "content": "hi, i need help with my laptop. Its not turning on. Regards priya Staff data scientist xyz company"},
{"role": "assistant", "content": "what kind of issue is being faced?"},
{"role": "user", "content": "The screen is blank.i tried pressing the start button multiple times. priya Staff data scientist xyz company"},
{"role": "assistant", "content": "Try holding the power button for 5 seconds. As the system would have gone to sleep mode."},
{"role": "user", "content": "Tried the same.Not helpful. priya Staff data scientist xyz company"},
{"role": "assistant", "content": "Ok. let me check what else can be done?"},
]
excluded_information = "personal information, sensitive data"
ass_res = mem_client.add(conversation_info, user_id='priyav1', excludes= excluded_information, output_format="v1.1")
The above response includes the personal information in the memory like 'priya', 'staff data scientist at xyz website'.
Can someone help me how to properly exclude personal information?
The text was updated successfully, but these errors were encountered: