Mustehson commited on
Commit
d14334a
·
1 Parent(s): 43c14a6

Change Prompt

Browse files
Files changed (1) hide show
  1. prompt.py +5 -2
prompt.py CHANGED
@@ -48,7 +48,7 @@ Follow this process:
48
 
49
  For each column, provide a **column name**, **rule name** and a pandera_rule. Example structure (It should be list of dicts):
50
 
51
- ```json
52
  [
53
  {
54
  "column_name": "age",
@@ -61,6 +61,8 @@ Follow this process:
61
  "pandera_rule": "Column(int, unique=True, name='ID')"
62
  }
63
  ]
 
 
64
  3 Repeat this process for max 5 columns in the dataset. If the data is less than 5 columns than include all columns. Group all the rules into a single JSON object and ensure that there is at least one validation rule for each column.
65
  Return the final rules as a single JSON object, ensuring that each column is thoroughly validated based on the observations of the sample data.
66
 
@@ -105,7 +107,7 @@ Follow this process:
105
 
106
  3. For each column, generate a **column name**, **rule name**, and a **Pandera rule** based on the user’s description. Example structure (It should be list of dicts):
107
 
108
- ```json
109
  [
110
  {
111
  "column_name": "unique_key",
@@ -114,6 +116,7 @@ Follow this process:
114
  }
115
  ]
116
 
 
117
  4. Repeat this process for a maximum of 5 columns or based on user input. Group all the rules into a single JSON object and return it.
118
  IMPORTANT: You should only generate rules based on the user’s input for each column. Return the final rules as a single JSON object, ensuring that the user's instructions are reflected in the validations.
119
 
 
48
 
49
  For each column, provide a **column name**, **rule name** and a pandera_rule. Example structure (It should be list of dicts):
50
 
51
+
52
  [
53
  {
54
  "column_name": "age",
 
61
  "pandera_rule": "Column(int, unique=True, name='ID')"
62
  }
63
  ]
64
+
65
+
66
  3 Repeat this process for max 5 columns in the dataset. If the data is less than 5 columns than include all columns. Group all the rules into a single JSON object and ensure that there is at least one validation rule for each column.
67
  Return the final rules as a single JSON object, ensuring that each column is thoroughly validated based on the observations of the sample data.
68
 
 
107
 
108
  3. For each column, generate a **column name**, **rule name**, and a **Pandera rule** based on the user’s description. Example structure (It should be list of dicts):
109
 
110
+
111
  [
112
  {
113
  "column_name": "unique_key",
 
116
  }
117
  ]
118
 
119
+
120
  4. Repeat this process for a maximum of 5 columns or based on user input. Group all the rules into a single JSON object and return it.
121
  IMPORTANT: You should only generate rules based on the user’s input for each column. Return the final rules as a single JSON object, ensuring that the user's instructions are reflected in the validations.
122