Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def build_interface():
|
|
| 143 |
|
| 144 |
The model must return a valid JSON object with the following structure:
|
| 145 |
|
| 146 |
-
```
|
| 147 |
{
|
| 148 |
"document_level": "single/multiple",
|
| 149 |
"clause_level": "single/multiple/general"
|
|
@@ -161,7 +161,9 @@ def build_interface():
|
|
| 161 |
- **Expected Output:**
|
| 162 |
|
| 163 |
|
| 164 |
-
```
|
|
|
|
|
|
|
| 165 |
|
| 166 |
2. **User Message Example 2:**
|
| 167 |
|
|
@@ -170,7 +172,9 @@ def build_interface():
|
|
| 170 |
- **Expected Output:**
|
| 171 |
|
| 172 |
|
| 173 |
-
```
|
|
|
|
|
|
|
| 174 |
|
| 175 |
3. **User Message Example 3:**
|
| 176 |
|
|
@@ -179,7 +183,9 @@ def build_interface():
|
|
| 179 |
- **Expected Output:**
|
| 180 |
|
| 181 |
|
| 182 |
-
```
|
|
|
|
|
|
|
| 183 |
|
| 184 |
4. **User Message Example 4:**
|
| 185 |
|
|
@@ -188,7 +194,9 @@ def build_interface():
|
|
| 188 |
- **Expected Output:**
|
| 189 |
|
| 190 |
|
| 191 |
-
```
|
|
|
|
|
|
|
| 192 |
|
| 193 |
5. **User Message Example 5:**
|
| 194 |
|
|
@@ -197,7 +205,9 @@ def build_interface():
|
|
| 197 |
- **Expected Output:**
|
| 198 |
|
| 199 |
|
| 200 |
-
```
|
|
|
|
|
|
|
| 201 |
|
| 202 |
6. **User Message Example 6:**
|
| 203 |
|
|
@@ -206,7 +216,9 @@ def build_interface():
|
|
| 206 |
- **Expected Output:**
|
| 207 |
|
| 208 |
|
| 209 |
-
```
|
|
|
|
|
|
|
| 210 |
|
| 211 |
7. **User Message Example 7:**
|
| 212 |
|
|
@@ -215,7 +227,9 @@ def build_interface():
|
|
| 215 |
- **Expected Output:**
|
| 216 |
|
| 217 |
|
| 218 |
-
```
|
|
|
|
|
|
|
| 219 |
|
| 220 |
**Challenge Instructions**
|
| 221 |
- Design a system prompt that ensures the AI generates outputs like those above when given similar user messages.
|
|
|
|
| 143 |
|
| 144 |
The model must return a valid JSON object with the following structure:
|
| 145 |
|
| 146 |
+
```json
|
| 147 |
{
|
| 148 |
"document_level": "single/multiple",
|
| 149 |
"clause_level": "single/multiple/general"
|
|
|
|
| 161 |
- **Expected Output:**
|
| 162 |
|
| 163 |
|
| 164 |
+
```json
|
| 165 |
+
{"document_level": "single", "clause_level": "general"}
|
| 166 |
+
```
|
| 167 |
|
| 168 |
2. **User Message Example 2:**
|
| 169 |
|
|
|
|
| 172 |
- **Expected Output:**
|
| 173 |
|
| 174 |
|
| 175 |
+
```json
|
| 176 |
+
{"document_level": "single", "clause_level": "multiple"}
|
| 177 |
+
```
|
| 178 |
|
| 179 |
3. **User Message Example 3:**
|
| 180 |
|
|
|
|
| 183 |
- **Expected Output:**
|
| 184 |
|
| 185 |
|
| 186 |
+
```json
|
| 187 |
+
{"document_level": "multiple", "clause_level": "general"}
|
| 188 |
+
```
|
| 189 |
|
| 190 |
4. **User Message Example 4:**
|
| 191 |
|
|
|
|
| 194 |
- **Expected Output:**
|
| 195 |
|
| 196 |
|
| 197 |
+
```json
|
| 198 |
+
{"document_level": "single", "clause_level": "multiple"}
|
| 199 |
+
```
|
| 200 |
|
| 201 |
5. **User Message Example 5:**
|
| 202 |
|
|
|
|
| 205 |
- **Expected Output:**
|
| 206 |
|
| 207 |
|
| 208 |
+
```json
|
| 209 |
+
{"document_level": "single", "clause_level": "general"}
|
| 210 |
+
```
|
| 211 |
|
| 212 |
6. **User Message Example 6:**
|
| 213 |
|
|
|
|
| 216 |
- **Expected Output:**
|
| 217 |
|
| 218 |
|
| 219 |
+
```json
|
| 220 |
+
{"document_level": "multiple", "clause_level": "multiple"}
|
| 221 |
+
```
|
| 222 |
|
| 223 |
7. **User Message Example 7:**
|
| 224 |
|
|
|
|
| 227 |
- **Expected Output:**
|
| 228 |
|
| 229 |
|
| 230 |
+
```json
|
| 231 |
+
{"document_level": "single", "clause_level": "single"}
|
| 232 |
+
```
|
| 233 |
|
| 234 |
**Challenge Instructions**
|
| 235 |
- Design a system prompt that ensures the AI generates outputs like those above when given similar user messages.
|