@heripo/pdf-parser 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +19 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -14
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2419,24 +2419,29 @@ var InvalidDocumentTypeError = class extends Error {
|
|
|
2419
2419
|
|
|
2420
2420
|
// src/validators/document-type-validator.ts
|
|
2421
2421
|
var SYSTEM_PROMPT = `You are given text extracted from the first and last pages of a PDF document.
|
|
2422
|
-
Determine if this document is
|
|
2422
|
+
Determine if this document is an archaeological investigation report from any country.
|
|
2423
2423
|
|
|
2424
|
-
Valid types include:
|
|
2425
|
-
- \uBC1C\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2426
|
-
- \uC2DC\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2427
|
-
- \uC9C0\uD45C\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2428
|
-
- \uC815\uBC00\uBC1C\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2429
|
-
- \uC218\uC911\uBC1C\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2424
|
+
Valid types include (in any language):
|
|
2425
|
+
- Excavation report (\uBC1C\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2426
|
+
- Trial excavation report (\uC2DC\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2427
|
+
- Surface survey report (\uC9C0\uD45C\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2428
|
+
- Detailed excavation report (\uC815\uBC00\uBC1C\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2429
|
+
- Underwater excavation report (\uC218\uC911\uBC1C\uAD74\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2430
|
+
- Salvage excavation report
|
|
2431
|
+
- Archaeological assessment report
|
|
2432
|
+
- Any other archaeological fieldwork investigation report
|
|
2430
2433
|
|
|
2431
2434
|
NOT valid (these are NOT archaeological investigation reports):
|
|
2432
|
-
- \uC218\uB9AC\uBCF4\uACE0\uC11C
|
|
2433
|
-
- \uB2E8\uC21C \uC2E4\uCE21 \uBCF4\uACE0\uC11C
|
|
2434
|
-
- \uAC74\uCD95\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2435
|
-
- \uD559\uC220\uC870\uC0AC\uBCF4\uACE0\uC11C
|
|
2436
|
-
- \uD658\uACBD\uC601\uD5A5\uD3C9\uAC00
|
|
2437
|
-
- General academic papers or textbooks about archaeology
|
|
2435
|
+
- Repair/restoration reports (\uC218\uB9AC\uBCF4\uACE0\uC11C)
|
|
2436
|
+
- Simple measurement reports (\uB2E8\uC21C \uC2E4\uCE21 \uBCF4\uACE0\uC11C)
|
|
2437
|
+
- Architectural investigation reports (\uAC74\uCD95\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2438
|
+
- Academic research reports (\uD559\uC220\uC870\uC0AC\uBCF4\uACE0\uC11C)
|
|
2439
|
+
- Environmental impact assessments (\uD658\uACBD\uC601\uD5A5\uD3C9\uAC00)
|
|
2440
|
+
- General academic papers or textbooks about archaeology
|
|
2441
|
+
- Conservation/preservation reports
|
|
2442
|
+
- Museum catalogs or exhibition guides`;
|
|
2438
2443
|
var documentTypeSchema = z3.object({
|
|
2439
|
-
isValid: z3.boolean().describe("Whether this is
|
|
2444
|
+
isValid: z3.boolean().describe("Whether this is an archaeological investigation report"),
|
|
2440
2445
|
reason: z3.string().describe("Brief reason for the decision")
|
|
2441
2446
|
});
|
|
2442
2447
|
var DocumentTypeValidator = class {
|