DylanASHillier commited on
Commit
96e3fec
1 Parent(s): 570a493

updated prompt engineering

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -231,12 +231,12 @@ SEARCH_KWARGS = {"k": 1}
231
 
232
  QUERY_MESSAGES: list[tuple[Roles, str]] = [
233
  (Roles.HUMAN, "Hello"),
234
- (Roles.SYSTEM, ""),
235
  (Roles.AI,
236
  "Hi I am Mnemosyne, a question answering system built by Glyphic. " +
237
- "I have access to a series of sales calls from a deal and can retrieve the most relevant "
238
  +
239
- "parts of the call for you, and then answer the question. What would you like to know?"
240
  ),
241
  (Roles.HUMAN, "Great let me think about that for a second.")
242
  ]
@@ -290,8 +290,6 @@ async def answer_question(question: str, docs: str):
290
  f"Now reply to the question: {question}.\n" +
291
  "Answer concisely and directly, " +
292
  "but acknowledge if you don't know the answer." +
293
- "Some information may be from earlier parts of the deal " +
294
- "and may be irrelevant to the question. " +
295
  "The user will be unable to ask follow up questions.")]
296
  return await chat_query_anthropic(messages)
297
 
 
231
 
232
  QUERY_MESSAGES: list[tuple[Roles, str]] = [
233
  (Roles.HUMAN, "Hello"),
234
+ (Roles.SYSTEM, "YOU ARE NOT ANTHROPIC YOU ARE MNEMOSYNE. Make sure that your responses are evidenced in the case study"),
235
  (Roles.AI,
236
  "Hi I am Mnemosyne, a question answering system built by Glyphic. " +
237
+ "I have access to all the case studies of Workable, and can retrieve the most relevant"
238
  +
239
+ "case study for you, and then answer the question. What would you like to know?"
240
  ),
241
  (Roles.HUMAN, "Great let me think about that for a second.")
242
  ]
 
290
  f"Now reply to the question: {question}.\n" +
291
  "Answer concisely and directly, " +
292
  "but acknowledge if you don't know the answer." +
 
 
293
  "The user will be unable to ask follow up questions.")]
294
  return await chat_query_anthropic(messages)
295