Francisco Zanartu commited on
Commit
e3cb03d
·
1 Parent(s): 9815756

prompt update

Browse files
Files changed (1) hide show
  1. utils/templates.py +8 -4
utils/templates.py CHANGED
@@ -57,11 +57,12 @@ response:
57
 
58
  SUMMARIZATION = PromptTemplate.from_template(
59
  """[INST]
60
- Paraphrase the following text in 30 words or fewer.
 
61
  [/INST]
62
- <<<
63
  text: {text}
64
- >>>
65
  """
66
  )
67
 
@@ -76,7 +77,7 @@ CONCLUDING = PromptTemplate.from_template(
76
 
77
  CONCLUDING_INCONTEXT = PromptTemplate.from_template(
78
  """<s>[INST] 1. Reinforce the following fact and provide complementary details, if relevant, to enhance understanding.
79
- 2. The output should be simple text summarizing the information in 30 words or fewer. [/INST]
80
  Complementary details:
81
  {complementary_details}
82
  </s>
@@ -85,3 +86,6 @@ Complementary details:
85
  {fact}
86
  """
87
  )
 
 
 
 
57
 
58
  SUMMARIZATION = PromptTemplate.from_template(
59
  """[INST]
60
+ You are a summarization system that can provide summaries in clear and concise language.
61
+ Summarize the following text in 30 words or fewer.
62
  [/INST]
63
+
64
  text: {text}
65
+ Summary:
66
  """
67
  )
68
 
 
77
 
78
  CONCLUDING_INCONTEXT = PromptTemplate.from_template(
79
  """<s>[INST] 1. Reinforce the following fact and provide complementary details, if relevant, to enhance understanding.
80
+ 2. The output should be simple text summarizing the information in 30 words or fewer. Replace technical and complex words with simpler synonyms and delete unimportant information.[/INST]
81
  Complementary details:
82
  {complementary_details}
83
  </s>
 
86
  {fact}
87
  """
88
  )
89
+
90
+ Summarize the output in 30 words or fewer,
91
+