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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
front = """<image>\n**Instruction:**
Analyze the image to extract values for the specified keys. Use the detailed descriptions below to determine the correct value for each key. Handle missing or ambiguous data as instructed.

---

### Keys and Descriptions

1. **`surat_tanda_nomor_kendaraan_bermotor`**
    - **Extract**: The value of the field labeled as "Surat Tanda Nomor Kendaraan Bermotor" and this is titel.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

2. **`tempat_tanggal`**
    - **Extract**: The location and date from the top right corner of the document.
    - **Note**: This field does not have a title such as "Tempat - Tanggal."
    - **Format**: `"CITY, DD MMM YYYY"` (e.g., `"JAKARTA, 07 DES 2018"`).
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

3. **`no`**
    - **Extract**: The value in the "NO" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

4. **`nomor_registrasi`**
    - **Extract**: The "NOMOR REGISTRASI" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

5. **`nama_pemilik`**
    - **Extract**: The "NAMA PEMILIK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

6. **`alamat`**
    - **Extract**: The "ALAMAT" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

7. **`merk`**
    - **Extract**: The "MERK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

8. **`type`**
    - **Extract**: The "TYPE" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

9. **`jenis`**
    - **Extract**: The "JENIS" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

10. **`model`**
    - **Extract**: The "MODEL" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

11. **`tahun_pembuatan`**
    - **Extract**: The "TAHUN PEMBUATAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

12. **`isi_silinder_daya_listrik`**
    - **Extract**: The "ISI SILINDER / DAYA LISTRIK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

13. **`nomor_rangka`**
    - **Extract**: The "NOMOR RANGKA" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

14. **`nomor_mesin`**
    - **Extract**: The "NOMOR MESIN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

15. **`nik_tdp_nie_kitas_kitap`**
    - **Extract**: The "NIK/TDP/NIE/KITAS/KITAP" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

16. **`warna`**
    - **Extract**: The "WARNA" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

17. **`bahan_bakar`**
    - **Extract**: The "BAHAN BAKAR" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

18. **`warna_tnkb`**
    - **Extract**: The "WARNA TNKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

19. **`tahun_registrasi`**
    - **Extract**: The "TAHUN REGISTRASI" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

20. **`nomor_bpkb`**
    - **Extract**: The "NOMOR BPKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

21. **`kode_lokasi`**
    - **Extract**: The "KODE LOKASI" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

22. **`no_urut_pendaftaran`**
    - **Extract**: The "NO URUT PENDAFTARAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

23. **`berlaku_sampai`**
    - **Extract**: The "BERLAKU SAMPAI" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`
24. **`qr_code`**
    - **Extract**: The value encoded in the QR code, if present.
    - **If No QR Code is Found**: `"null"`
    - **If a QR Code is Present but Contains No Data**: `"empty"`

---

### Output Format

```json
{
    "surat_tanda_nomor_kendaraan_bermotor": "<value> OR empty OR null",
    "tempat_tanggal": "<value> OR empty OR null",
    "no": "<value> OR empty OR null",
    "nomor_registrasi": "<value> OR empty OR null",
    "nama_pemilik": "<value> OR empty OR null",
    "alamat": "<value> OR empty OR null",
    "merk": "<value> OR empty OR null",
    "type": "<value> OR empty OR null",
    "jenis": "<value> OR empty OR null",
    "model": "<value> OR empty OR null",
    "tahun_pembuatan": "<value> OR empty OR null",
    "isi_silinder_daya_listrik": "<value> OR empty OR null",
    "nomor_rangka": "<value> OR empty OR null",
    "nomor_mesin": "<value> OR empty OR null",
    "nik_tdp_nie_kitas_kitap": "<value> OR empty OR null",
    "warna": "<value> OR empty OR null",
    "bahan_bakar": "<value> OR empty OR null",
    "warna_tnkb": "<value> OR empty OR null",
    "tahun_registrasi": "<value> OR empty OR null",
    "nomor_bpkb": "<value> OR empty OR null",
    "kode_lokasi": "<value> OR empty OR null",
    "no_urut_pendaftaran": "<value> OR empty OR null",
    "berlaku_sampai": "<value> OR empty OR null"
    "qr_code" : "<value> OR empty OR null"
}

### Return Output:
Generate a JSON object:
{
    "output JSON": "key-value pairs"
}
---
"""

back = """<image>\n**Instruction:**
Analyze the image to extract values for the specified keys. Use the detailed descriptions below to determine the correct value for each key. Handle missing or ambiguous data as instructed.

---
### Keys and Descriptions

1. **`Surat Ketetapan Kewajiban Pembayaran PKB/BBNKB,SWDKLLJ DAN PNBP`**
    - **Extract**: The value of the field is"Surat Ketetapan Kewajiban Pembayaran PKB/BBNKB, SWDKLLJ DAN PNBP" and this is title.
    - **If the Field is Present** : "present"
    - **If the Field is Absent**: `"null"`

2. **`nomor_registrasi`**
    - **Extract**: The "NOMOR REGISTRASI" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

3.  **`nama_pemilik`**
    - **Extract**: The "NAMA PEMILIK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`


4. **`alamat`**
    - **Extract**: The "ALAMAT" field and this is address may contain 1 or more lines format : "BUNTET PESANTREN RT/RW/015/005 DESA MERTAPADA
KULON KEC. ASTANAJAPURA KAB.CIREBON ".
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

5. **`merk/type`**
    - **Extract**: The "MERK/TYPE" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`


6. **`jenis/model`**
    - **Extract**: The "JENIS/MODEL" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

7.  **`tahun_pembuatan`**
    - **Extract**: The "TAHUN PEMBUATAN/PERAKITAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

8.  **`warna_kb`**
    - **Extract**: The "WARNA KB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

9. **`isi_silinder`**
    - **Extract**: The "ISI SILINDER/HP" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

10. **`nomor_rangka`**
    - **Extract**: The "NOMOR RANGKA/NIK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

11.**`nomor_mesin`**
    - **Extract**: The "NOMOR MESIN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

12. **`no_bpkp`**
    - **Extract**: The "NO BPKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`


13. **`berlaku s/d`**
    - **Extract**: The "BERLAKU S/D" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`


14. **`bahan_bakar`**
    - **Extract**: The "BAHAN BAKAR" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`


15. **`warna_tnkb`**
    - **Extract**: The "WARNA TNKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`


16.  **`kepemilikan_ke`**
    - **Extract**: The "KEPEMILIKAN KE" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

17. **`no_registrasi_lama`**
    - **Extract**: The "NO REGISTRASI LAMA" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

18. **`kode_njkb`**
    - **Extract**: The "KODE NJKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

19. **`no`**
    - **Extract**: The "NO." field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

20.**`asal_daerah`**
    - **Extract**: The "ASAL DAERAH" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

21. **`no_urut`**
    - **Extract**: The "NO. URUT" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

22. **`no_kohir`**
    - **Extract**: The "NO. KOHIR" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

23. **`nik_no.hp`**
    - **Extract**: The "NIK/NO.HP" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

24. **`pkok_bbnkb`**
    - **Extract**: The "PKOK BBNKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

25. **`pkok_pkb`**
    - **Extract**: The "POKOK PKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

26. **`pkok_swdkljj`**
    - **Extract**: The "POKOK SWDKLJJ" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

27. **`pkok_penerbitan_stnk`**
    - **Extract**: The "POKOK PENERBITAN STNK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

28. **`pkok_penerbitan_tnkb`**
    - **Extract**: The "POKOK PENERBITAN TNKB/NRKB PILIHAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

29. **`pkok_jumlah`**
    - **Extract**: The "POKOK JUMLAH" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

30. **`sanksi_adm_bbnkb`**
    - **Extract**: The "SANKSI ADM BBNKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

31. **`sanksi_adm_pkb`**
    - **Extract**: The "SANKSI ADM PKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

32. **`sanksi_adm_swdkljj`**
    - **Extract**: The "SANKSI ADM SWDKLJJ" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

33. **`sanksi_adm_penerbitan_stnk`**
    - **Extract**: The "SANKSI ADM PENERBITAN STNK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

34. **`sanksi_adm_penerbitan_tnkb`**
    - **Extract**: The "SANKSI ADM PENERBITAN TNKB/NRKB PILIHAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

35. **`sanksi_adm_jumlah`**
    - **Extract**: The "SANKSI ADM JUMLAH " field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

36. **`jumlah_bbnkb`**
    - **Extract**: The "JUMLAH BBNKB" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

37. **`jumlah_pkb`**
    - **Extract**: The "JUMLAH PKB " field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

38. **`jumlah_swdkljj`**
    - **Extract**: The "JUMLAH SWDKLJJ" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

39. **`jumlah_penerbitan_stnk`**
    - **Extract**: The "JUMLAH PENERBITAN STNK" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

40. **`jumlah_penerbitan_tnkb`**
    - **Extract**: The "JUMLAH PENERBITAN TNKB/NRKB PILIHAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

41. **`jumlah_jumlah`**
    - **Extract**: The "JUMLAH JUMLAH" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

42. **`ditetapkan_tanggal`**
    - **Extract**: The "DITETAPKAN TANGGAL" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

43. **`penetapan`**
    - **Extract**: The "PENETAPAN" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

44. **`kasir`**
    - **Extract**: The "KASIR" field.
    - **If the Field is Absent**: `"null"`
    - **If the Field is Present but No Value is Provided**: `"empty"`

---

### Output Format

```json
{
    "Surat_Ketetapan_Kewajiban_Pembayaran_PKB_BBNKB_SWDKLLJ_DAN_PNBP": "present OR null",
    "nomor_registrasi": "<value> OR empty OR null",
    "nama_pemilik": "<value> OR empty OR null",
    "alamat": "<value> OR empty OR null",
    "merk_type": "<value> OR empty OR null",
    "jenis_model": "<value> OR empty OR null",
    "tahun_pembuatan": "<value> OR empty OR null",
    "warna_kb": "<value> OR empty OR null",
    "isi_silinder": "<value> OR empty OR null",
    "nomor_rangka": "<value> OR empty OR null",
    "nomor_mesin": "<value> OR empty OR null",
    "no_bpkp": "<value> OR empty OR null",
    "berlaku_s_d": "<value> OR empty OR null",
    "bahan_bakar": "<value> OR empty OR null",
    "warna_tnkb": "<value> OR empty OR null",
    "kepemilikan_ke": "<value> OR empty OR null",
    "no_registrasi_lama": "<value> OR empty OR null",
    "kode_njkb": "<value> OR empty OR null",
    "no": "<value> OR empty OR null",
    "asal_daerah": "<value> OR empty OR null",
    "no_urut": "<value> OR empty OR null",
    "no_kohir": "<value> OR empty OR null",
    "nik_no_hp": "<value> OR empty OR null",
    "pkok_bbnkb": "<value> OR empty OR null",
    "pkok_pkb": "<value> OR empty OR null",
    "pkok_swdkljj": "<value> OR empty OR null",
    "pkok_penerbitan_stnk": "<value> OR empty OR null",
    "pkok_penerbitan_tnkb": "<value> OR empty OR null",
    "pkok_jumlah": "<value> OR empty OR null",
    "sanksi_adm_bbnkb": "<value> OR empty OR null",
    "sanksi_adm_pkb": "<value> OR empty OR null",
    "sanksi_adm_swdkljj": "<value> OR empty OR null",
    "sanksi_adm_penerbitan_stnk": "<value> OR empty OR null",
    "sanksi_adm_penerbitan_tnkb": "<value> OR empty OR null",
    "sanksi_adm_jumlah": "<value> OR empty OR null",
    "jumlah_bbnkb": "<value> OR empty OR null",
    "jumlah_pkb": "<value> OR empty OR null",
    "jumlah_swdkljj": "<value> OR empty OR null",
    "jumlah_penerbitan_stnk": "<value> OR empty OR null",
    "jumlah_penerbitan_tnkb": "<value> OR empty OR null",
    "jumlah_jumlah": "<value> OR empty OR null",
    "ditetapkan_tanggal": "<value> OR empty OR null",
    "penetapan": "<value> OR empty OR null",
    "kasir": "<value> OR empty OR null"
}
}
Return Output:
Generate a JSON object:
{
    "output JSON": "key-value pairs"
}


"""