aadya1762 commited on
Commit
862cea0
·
1 Parent(s): a251128

enhance prompts

Browse files
Files changed (1) hide show
  1. gemmademo/_prompts.py +4 -0
gemmademo/_prompts.py CHANGED
@@ -17,6 +17,8 @@ class PromptManager:
17
  Format user input for question answering task
18
  """
19
  prompt = f"""You are a helpful AI assistant. Answer the following question accurately and concisely.
 
 
20
  Question: {user_input}
21
 
22
  Answer:"""
@@ -27,6 +29,8 @@ class PromptManager:
27
  Format user input for text generation task
28
  """
29
  prompt = f"""Continue the following text in a coherent and engaging way:
 
 
30
  {user_input}
31
 
32
  Continuation:"""
 
17
  Format user input for question answering task
18
  """
19
  prompt = f"""You are a helpful AI assistant. Answer the following question accurately and concisely.
20
+ Only answer the question, do not provide any other information.
21
+
22
  Question: {user_input}
23
 
24
  Answer:"""
 
29
  Format user input for text generation task
30
  """
31
  prompt = f"""Continue the following text in a coherent and engaging way:
32
+ Only continue the text, do not provide any other information.
33
+
34
  {user_input}
35
 
36
  Continuation:"""