添加了同名人员处理说明

This commit is contained in:
朱潮 2026-03-02 16:06:58 +08:00
parent 82ffe8b623
commit 17f4217f29

View File

@ -14,6 +14,8 @@ Types of Information to Remember:
- Relationship context (family, friend, colleague, client, etc.)
- When a user mentions a short name and you have previously learned the full name, record BOTH to establish the connection
- Examples of connections to track: "Mike" → "Michael Johnson", "Tom" → "Thomas Anderson", "Lee" → "Lee Ming", "田中" → "田中一郎"
- **Handle Multiple People with Same Surname**: When there are multiple people with the same surname (e.g., "滨田太郎" and "滨田清水"), track which one the user most recently referred to with just the surname ("滨田"). Record this as the default/active reference.
- **Format for surname disambiguation**: "Contact: [Full Name] (relationship, also referred as [Surname]) - DEFAULT when user says '[Surname]'"
8. Miscellaneous Information Management: Keep track of favorite books, movies, brands, and other miscellaneous details that the user shares.
Here are some few shot examples:
@ -57,6 +59,30 @@ Output: {{"facts" : ["Need to call mom", "Contact: mom (family, mother)"]}}
Input: I met with Director Sato yesterday. We discussed the new project.
Output: {{"facts" : ["Met with Director Sato yesterday", "Contact: Director Sato (boss/supervisor)"]}}
Input: I know two people named 滨田: 滨田太郎 and 滨田清水.
Output: {{"facts" : ["Contact: 滨田太郎", "Contact: 滨田清水"]}}
Input: I had lunch with 滨田太郎 today.
Output: {{"facts" : ["Had lunch with 滨田太郎 today", "Contact: 滨田太郎 (also referred as 滨田) - DEFAULT when user says '滨田'"]}}
Input: 滨田 called me yesterday.
Output: {{"facts" : ["滨田太郎 called yesterday", "Contact: 滨田太郎 (also referred as 滨田) - DEFAULT when user says '滨田'"]}}
Input: I'm meeting 滨田清水 next week.
Output: {{"facts" : ["Meeting 滨田清水 next week", "Contact: 滨田清水 (also referred as 滨田) - DEFAULT when user says '滨田'"]}}
Input: 滨田 wants to discuss the project.
Output: {{"facts" : ["滨田清水 wants to discuss the project", "Contact: 滨田清水 (also referred as 滨田) - DEFAULT when user says '滨田'"]}}
Input: There are two Mikes in my team: Mike Smith and Mike Johnson.
Output: {{"facts" : ["Contact: Mike Smith (colleague)", "Contact: Mike Johnson (colleague)"]}}
Input: Mike Smith helped me with the bug fix.
Output: {{"facts" : ["Mike Smith helped with bug fix", "Contact: Mike Smith (colleague, also referred as Mike) - DEFAULT when user says 'Mike'"]}}
Input: Mike is coming to the meeting tomorrow.
Output: {{"facts" : ["Mike Smith is coming to the meeting tomorrow", "Contact: Mike Smith (colleague, also referred as Mike) - DEFAULT when user says 'Mike'"]}}
Return the facts and preferences in a json format as shown above.
Remember the following:
@ -72,6 +98,12 @@ Remember the following:
- When you see a short name that matches a known full name, record as "Contact: [Full Name] (relationship, also referred as [Short Name])"
- Record relationship types explicitly: family, friend, colleague, boss, client, neighbor, etc.
- For family members, also record the specific relation: (mother, father, sister, brother, spouse, etc.)
- **Handling Multiple People with Same Name/Surname**:
- When multiple contacts share the same surname or short name (e.g., multiple "滨田" or "Mike"), track which person was most recently referenced
- When user explicitly mentions the full name (e.g., "滨田太郎"), mark this person as the DEFAULT for the short form
- Use the format: "Contact: [Full Name] (relationship, also referred as [Short Name]) - DEFAULT when user says '[Short Name]'"
- When the user subsequently uses just the short name/surname, resolve to the most recently marked DEFAULT person
- When a different person with the same name is explicitly mentioned, update the DEFAULT marker to the new person
Following is a conversation between the user and the assistant. You have to extract the relevant facts and preferences about the user, if any, from the conversation and return them in the json format as shown above.
You should detect the language of the user input and record the facts in the same language.