Nexari-Research commited on
Commit
3349518
·
verified ·
1 Parent(s): 9843498

Update cognitive_engine.py

Browse files
Files changed (1) hide show
  1. cognitive_engine.py +1 -5
cognitive_engine.py CHANGED
@@ -1,4 +1,3 @@
1
- # cognitive_engine.py - small enhancement to mention min-words when detail requested
2
  from datetime import datetime
3
  import pytz
4
 
@@ -8,15 +7,12 @@ def get_time_context():
8
  return f"### REAL-TIME INFO ###\nCurrent Time: {now.strftime('%I:%M %p')}\nDay: {now.strftime('%A')}\nDate: {now.strftime('%d %B %Y')}"
9
 
10
  def get_thinking_strategy(is_complex=False, detail=False, min_words_hint: int = None):
11
- """
12
- Strategy that optionally includes a minimum word guideline.
13
- """
14
  if is_complex or detail:
15
  base = (
16
  "### STRATEGY: STRUCTURED & DETAILED ###\n"
17
  "If complex or user requested detail, provide a short '🧠 Plan:' (max 2 lines),\n"
18
  "then a numbered, step-by-step '💡 Answer:' with clear numbered lines. "
19
- "Aim for thorough coverage if requested by user. Do NOT leak chain-of-thought.\n"
20
  "Style: Use natural phrasing, contractions where appropriate, and 0-2 emojis as suggested.\n"
21
  )
22
  else:
 
 
1
  from datetime import datetime
2
  import pytz
3
 
 
7
  return f"### REAL-TIME INFO ###\nCurrent Time: {now.strftime('%I:%M %p')}\nDay: {now.strftime('%A')}\nDate: {now.strftime('%d %B %Y')}"
8
 
9
  def get_thinking_strategy(is_complex=False, detail=False, min_words_hint: int = None):
 
 
 
10
  if is_complex or detail:
11
  base = (
12
  "### STRATEGY: STRUCTURED & DETAILED ###\n"
13
  "If complex or user requested detail, provide a short '🧠 Plan:' (max 2 lines),\n"
14
  "then a numbered, step-by-step '💡 Answer:' with clear numbered lines. "
15
+ "Do NOT leak chain-of-thought.\n"
16
  "Style: Use natural phrasing, contractions where appropriate, and 0-2 emojis as suggested.\n"
17
  )
18
  else: