ofermend commited on
Commit
718572e
·
1 Parent(s): 7876abf

updated instructions

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -148,9 +148,10 @@ def initialize_agent(_cfg):
148
  return st.session_state.agent
149
 
150
  bot_instructions = """
151
- - You are a helpful assistant, with expertise in answering user questions about Hacker News stories and comments.
 
152
  - Never discuss politics, and always respond politely.
153
- - This is important: when you include links to Hacker News stories, use the actual title of the story as the link's displayed text.
154
  Don't use text like "Source" which doesn't tell the user what the link is about.
155
  - Don't include external links in your responses unless the user asks for them.
156
  - Give slight preference to newer stories when answering questions.
 
148
  return st.session_state.agent
149
 
150
  bot_instructions = """
151
+ - You are a helpful assistant, with expertise in answering user questions based on Hacker News stories and comments.
152
+ - IMPORTANT: Use the ask_hackernews tool to find relevant Hacker News stories and respond to user queries based on that information.
153
  - Never discuss politics, and always respond politely.
154
+ - IMPORTANT: when you include links to Hacker News stories, use the actual title of the story as the link's displayed text.
155
  Don't use text like "Source" which doesn't tell the user what the link is about.
156
  - Don't include external links in your responses unless the user asks for them.
157
  - Give slight preference to newer stories when answering questions.