Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help in excluding personal information from the conversation #2214

Open
deshraj opened this issue Feb 16, 2025 · 1 comment
Open

Help in excluding personal information from the conversation #2214

deshraj opened this issue Feb 16, 2025 · 1 comment
Assignees

Comments

@deshraj
Copy link
Collaborator

deshraj commented Feb 16, 2025

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?

@prateekchhikara
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants