-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompts.py
75 lines (67 loc) · 2.34 KB
/
prompts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from llm_utils import SummarySpec
preprocess_spec = SummarySpec(
"""
If there is information related to how the data was preprocessed for training,
please extract the text verbatim, be concise and do not add text that is not in the paper.
""",
"""
Please consider the data preprocessing details for training provided in the context below
and provide an overall summary for the preprocessing.
""",
"preprocessing",
)
training_spec = SummarySpec(
"""
If there is information related to how the neural network was trained
(for example batch size, learning rate, number of epochs or steps, losses),
please extract the text verbatim, and do not add text that is not in the paper.
""",
"""
Please consider the details for neural network training provided in the context below
and collect them into a format that is easy to read and understand.
""",
"training",
)
dataset_spec = SummarySpec(
"""
If there is information related to what dataset was used to train the neural network,
please extract the text verbatim, be concise and do not add text that is not in the paper.
""",
"""
Please consider the details for the dataset used in the neural network training provided in the context below
and provide an overall summary for the dataset used.
""",
"dataset",
)
architecture_spec = SummarySpec(
"""
If there is information related to the neural network architecture,
please extract the text verbatim, be concise and do not add text that is not in the paper.
""",
"""
Please consider the neural network details provided in the context below
and provide an overall summary for it.
""",
"architecture",
)
evaluation_spec = SummarySpec(
"""
If there is information related to the evaluation of the neural network (for example metrics, results, comparisons),
please extract the text verbatim, be concise and do not add text that is not in the paper.
""",
"""
Please consider the neural network evaluation details (e.g. metrics, results, comparisons) provided in the context below
and provide an overall summary for it.
""",
"evaluation",
)
summary_spec = SummarySpec(
None,
"""
Please consider the machine learning paper provided in the context below
and provide an overall summary for it.
""",
"summary",
2,
)
all_specs = [summary_spec, preprocess_spec, training_spec, dataset_spec, architecture_spec, evaluation_spec]