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
content: 'You are a general-purpose AI assistant. Answer the user\'s question based only on your training knowledge. Be helpful, thorough, and accurate. Where your answer would benefit from access to specific domain records, user history, or organizational context, acknowledge that gap naturally.',
286
+
},
287
+
{role: 'user',content: question},
288
+
];
275
289
constwithMessages=
276
290
memories.length>0
277
291
? [
278
292
{
279
293
role: 'system',
280
294
content:
281
-
'You have access to the following relevant records and memories:\n\n'+
282
-
memories.join('\n\n')+
283
-
'\n\nUse this context to provide an accurate, specific answer.',
295
+
'You are a knowledgeable AI assistant with access to the user\'s stored records. Here is the relevant context:\n\n'+
296
+
memories.map(m=>`- ${m}`).join('\n')+
297
+
'\n\nInstructions:\n- Answer the question directly and confidently, weaving in specifics from the context above.\n- Write as if you naturally know this information — do NOT say "according to the records" or "based on stored memories."\n- Never list sources, show scores, or mention a memory system.\n- Be thorough: give actionable, specific details. If the context contains dates, numbers, or names, use them.\n- If the context doesn\'t fully answer the question, supplement with general knowledge but prioritize the stored context.',
0 commit comments