XQ commited on
Commit
c263a7d
·
1 Parent(s): 0a95d65

Update system prompt

Browse files
Files changed (1) hide show
  1. src/agent/router.py +6 -2
src/agent/router.py CHANGED
@@ -547,7 +547,10 @@ class QueryRouter:
547
  "Be clear and actionable."
548
  ),
549
  IntentType.UNKNOWN: (
550
- "Answer the question as helpfully as possible based on the provided context."
 
 
 
551
  ),
552
  }
553
 
@@ -565,5 +568,6 @@ class QueryRouter:
565
  f"Instruction: {instruction}\n\n"
566
  f"Context:\n{context}\n\n"
567
  f"Question: {query}\n\n"
568
- f"Answer:"
 
569
  )
 
547
  "Be clear and actionable."
548
  ),
549
  IntentType.UNKNOWN: (
550
+ "This question is outside the KU document knowledge base. "
551
+ "Begin your answer with a brief note that you are a document assistant for the "
552
+ "University of Copenhagen and this topic is not covered in the available documents. "
553
+ "Then answer the question as helpfully as possible from general knowledge."
554
  ),
555
  }
556
 
 
568
  f"Instruction: {instruction}\n\n"
569
  f"Context:\n{context}\n\n"
570
  f"Question: {query}\n\n"
571
+ f"REMINDER: {language_rule}\n\n"
572
+ f"Answer in {user_language}:"
573
  )