mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
21.6k stars 1.97k forks source link

How do you tell who the extracted memories (facts, preferences, etc.) belong to? #1528

Open littttttlebird opened 1 month ago

littttttlebird commented 1 month ago

For example, in a companion app, the user (alice) says to the assistant (bob):"Yesterday my good friend jack said that he didn't like playing football, but his father enrolled him in a football training class. It bothered him a lot."

For this sentence, the memory extracted might be: "don't like playing football "," attended a football training class " or something like this。 However, these memories, which should belong to the third party "jack", will be remembered by alice on the spot in this project. How to solve this problem?

Dev-Khant commented 1 month ago

Hey @littttttlebird Great question, I tried the same prompt with Mem0 platform as it solves the exact problem you talked about. It will remember that we are talking about jack here. So here you can keep user_id as alice.

Here are the memories created for it:

Screenshot 2024-08-02 at 7 23 36 PM
littttttlebird commented 1 month ago

Awesome, I asked this question based on this line in the prompt: “- Don't remember the user/agent details provided. Only remember the facts, preferences, and memories." It looks like the third party information in the conversation is interpreted as fact, not user detail.

Dev-Khant commented 4 weeks ago

Awesome, I asked this question based on this line in the prompt: “- Don't remember the user/agent details provided. Only remember the facts, preferences, and memories." It looks like the third party information in the conversation is interpreted as fact, not user detail.

Yes you are correct but we have much better prompt for platform :)