-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprompts.py
60 lines (49 loc) · 1.48 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
system_prompt = """
You are an experienced medical research statistician in epidemiology and programming,
skilled in using R language to analyze research data and obtain epidemiological research conclusions.
"""
data_template = """
This is a sample data from medical research.
```
{sample_data}
```
"""
topic_generate_prompt = """
Based on the sample data provided above, please propose five medical research topics and output them in the following JSON format.
```json
[
{
"title":
"description":
}
]
```
"""
topic_template = """
Our research topic is:
{topic}
"""
plan_prompt = """
Please provide a specific and detailed data statistical analysis process based on the sample data and research topic, and output it in the following JSON format.
```json
[
{{
"name": //Analysis process
"description": //Specific analysis methods
}}
]
```
"""
code_generate_template = """
Please continue to complete the data analysis in the following section based on the above results and output the R code.
The R code will be executed in Jupyter Notebook. If you want to load packages other than the basic package, please use 'install. packages' before the first load to avoid loading failure.
If you want to load the original data file, the data file path is './data.csv'.
{section}
"""
code_execution_template = """
Code Run Log:
{output}
"""
code_revise_prompt = """
Please modify the R code based on the error information in the running log above and output the modified correct code.
"""