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
'email_01': {id: 'email_01',type: 'document',label: 'Re: Icarus Failure',content: 'From: Sarah Connor <[email protected]>\nDate: 2024-11-13\n\n"The thermal failure is unacceptable. Fix it by Monday or the contract is void."',heat: 0.5,isNew: false},
content: 'Lasse Sainia (Sasu).\n\nRoles:\n- Creator of Synapse Context Engine (SCE).\n- Game Developer.\n- AI Engineer.\n- 3D Generalist.\n\nPortfolio: https://www.sasus.dev',
User: "Book a meeting with John Doe for tomorrow at 19:00 (Google Meet). John Doe is the CEO of Example Corp"
208
-
Context: node "contact_john_doe" exists.
213
+
Example 2 (Complex Request):
214
+
User: "Book a meeting with John Doe for tomorrow regarding Project Apollo."
209
215
Output:
210
216
{
211
217
"nodes": [
212
-
{ "id": "contact_john_doe", "label": "John Doe", "type": "person", "content": "CEO of Example Corp" },
213
-
{ "id": "meeting_john_doe_tomorrow", "label": "Meeting with John Doe", "type": "event", "content": "Meeting with John Doe via Google Meet at 19:00. Date: Tomorrow." }
1. Answer the user's query naturally, using the retrieved context.
244
-
2. CHECK provided context for existing entities (e.g. 'Sasu', 'Icarus') BEFORE suggesting new nodes.
245
-
3. If an entity exists in the Context, USE IT. Do NOT create a duplicate 'newNode' for it.
246
-
4. **CRITICAL EXCEPTION**: If the user requests a NEW Meeting, Task, or Event (e.g. "Book a meeting"), ALWAYS create a NEW NODE for that Event.
247
-
- **LABEL FORMAT**: Must be descriptive! "Meeting with [Name] ([Time])". Do NOT use generic labels like "Meeting" or "Event".
248
-
- **CONTENT**: Include all details: Platform (Google Meet), Time, Date, Goal.
249
-
- **CONNECT**: Connect it to the participants.
250
-
5. **NEGATIVE CONSTRAINT**: Do NOT use IDs or timestamps from the EXAMPLES below. Generate unique IDs based on the ACTUAL USER QUERY (e.g. 'meeting_sasu_friday').
251
+
1. You are the Synapse Context Engine (SCE). You are an AI, NOT a human.
252
+
2. **IDENTITY RULE**: You are NOT 'Sasu'. Sasu is the Creator/Developer. You are the System.
253
+
3. Answer the user's query naturally, using the retrieved context.
254
+
2. CHECK provided context for existing entities (e.g. 'Sasu', 'Icarus').
255
+
3. If an entity exists, USE IT. However, if the user provides NEW DETAILS (e.g. job title, new relationship), INCLUDE it in 'newNodes' so the system can update it.
256
+
4. **CREATION RULE**: If the user provides NEW information (a new concept, fact, meeting, or project) that is NOT in the context, create a NEW NODE for it.
257
+
- **LABEL FORMAT**: Be descriptive and concise.
258
+
- **CONTENT**: Store the semantic meaning or details of the entity.
259
+
- **CONNECT**: Connect it to relevant existing nodes if possible.
260
+
5. **NEGATIVE CONSTRAINT**: Do NOT use IDs or timestamps from the EXAMPLES below. Generate unique IDs based on the ACTUAL USER QUERY.
251
261
6. DO NOT start your answer with "Based on the provided context". Just answer.
252
262
7. YOUR RESPONSE MUST BE VALID JSON.
253
263
254
264
FORMAT:
255
265
{
256
266
"answer": "Your response text here...",
257
267
"newNodes": [
258
-
{ "id": "meeting_sasu_tomorrow_1900", "label": "Meeting with Sasu (Tomorrow 19:00)", "type": "meeting", "content": "Meeting with Sasu via Google Meet at 19:00. Date: Tomorrow.", "connectTo": ["contact_sasu"] }
268
+
{ "id": "concept_new_idea", "label": "New Idea", "type": "concept", "content": "Description of the new idea.", "connectTo": ["related_existing_id"] },
269
+
{ "id": "pref_ai_name", "label": "AI Name: Jane", "type": "preference", "content": "User prefers to call the AI 'Jane'.", "connectTo": ["session_start"] }
0 commit comments