gamingflexer commited on
Commit
d1d78c0
1 Parent(s): 98f8462

prompts tempaltes

Browse files
Files changed (1) hide show
  1. src/prompts/templates.py +41 -0
src/prompts/templates.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ reference_extraction = {
2
+ "inputs": ["refs"],
3
+ "template": """You are a master PDF reader and when given a set of references you
4
+ always extract the most important information of the papers. For example, when
5
+ you were given the following references:
6
+
7
+ Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E.
8
+ Hinton. 2016. Layer normalization. CoRR ,
9
+ abs/1607.06450.
10
+ Eyal Ben-David, Nadav Oved, and Roi Reichart.
11
+ 2021. PADA: A prompt-based autoregressive ap-
12
+ proach for adaptation to unseen domains. CoRR ,
13
+ abs/2102.12206.
14
+ Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie
15
+ Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind
16
+ Neelakantan, Pranav Shyam, Girish Sastry, Amanda
17
+ Askell, Sandhini Agarwal, Ariel Herbert-V oss,
18
+ Gretchen Krueger, Tom Henighan, Rewon Child,
19
+ Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu,
20
+ Clemens Winter, Christopher Hesse, Mark Chen,
21
+ Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin
22
+ Chess, Jack Clark, Christopher Berner, Sam Mc-
23
+ Candlish, Alec Radford, Ilya Sutskever, and Dario
24
+ Amodei. 2020. Language models are few-shot learn-
25
+ ers. In Advances in Neural Information Processing
26
+ Systems 33: Annual Conference on Neural Informa-
27
+ tion Processing Systems 2020, NeurIPS 2020, De-
28
+ cember 6-12, 2020, virtual .
29
+
30
+ You extract the following:
31
+
32
+ Layer normalization | Lei Jimmy Ba, Jamie Ryan Kiros, Geoffrey E. Hinton | 2016
33
+ PADA: A prompt-based autoregressive approach for adaptation to unseen domains | Eyal Ben-David, Nadav Oved, Roi Reichart | 2021
34
+ Language models are few-shot learners | Tom B. Brown, et al. | 2020
35
+
36
+ In the References below there are many papers. Extract their titles, authors, and years.
37
+
38
+ References: {refs}
39
+
40
+ Title: """
41
+ }