feat(contract): 采购合同对比agent

Signed-off-by: sophie <sophie>

Signed-off-by: sophie <sophie>
This commit is contained in:
sophie committed 2026-07-27 14:47:09 +08:00
1 parent ffccf19ba2
commit 0503ff76a6
90 files changed
+16729 -1344

No files matched your search

+306 -37
View File
@@ -725,8 +725,14 @@
"The admin view must be able to export join date, completion date, department, name, employee ID, and score."
],
"booleanOptions": [
{ "id": "true", "label": "True" },
{ "id": "false", "label": "False" }
{
"id": "true",
"label": "True"
},
{
"id": "false",
"label": "False"
}
],
"questionBank": [
{
@@ -736,10 +742,22 @@
"answer": "c",
"explanation": "According to the onboarding exam, salary is paid on the 15th of each month.",
"options": [
{ "id": "a", "label": "A. 8th" },
{ "id": "b", "label": "B. 9th" },
{ "id": "c", "label": "C. 15th" },
{ "id": "d", "label": "D. 27th" }
{
"id": "a",
"label": "A. 8th"
},
{
"id": "b",
"label": "B. 9th"
},
{
"id": "c",
"label": "C. 15th"
},
{
"id": "d",
"label": "D. 27th"
}
]
},
{
@@ -749,9 +767,18 @@
"answer": "b",
"explanation": "The company cafeteria uses the Zhongmi meal-ordering system, not OA or ERP.",
"options": [
{ "id": "a", "label": "A. OA" },
{ "id": "b", "label": "B. Zhongmi ordering system" },
{ "id": "c", "label": "C. ERP" }
{
"id": "a",
"label": "A. OA"
},
{
"id": "b",
"label": "B. Zhongmi ordering system"
},
{
"id": "c",
"label": "C. ERP"
}
]
},
{
@@ -761,10 +788,22 @@
"answer": "abcd",
"explanation": "All four options listed in the exam belong to the company product scope.",
"options": [
{ "id": "abcd", "label": "A/B/C/D All of the above" },
{ "id": "ab", "label": "A/B" },
{ "id": "cd", "label": "C/D" },
{ "id": "a", "label": "A only" }
{
"id": "abcd",
"label": "A/B/C/D All of the above"
},
{
"id": "ab",
"label": "A/B"
},
{
"id": "cd",
"label": "C/D"
},
{
"id": "a",
"label": "A only"
}
]
},
{
@@ -774,10 +813,22 @@
"answer": "c",
"explanation": "Leave must use the OA leave application form.",
"options": [
{ "id": "a", "label": "A. Overtime request" },
{ "id": "b", "label": "B. Contact form" },
{ "id": "c", "label": "C. Leave application" },
{ "id": "d", "label": "D. Employee request form" }
{
"id": "a",
"label": "A. Overtime request"
},
{
"id": "b",
"label": "B. Contact form"
},
{
"id": "c",
"label": "C. Leave application"
},
{
"id": "d",
"label": "D. Employee request form"
}
]
},
{
@@ -787,9 +838,18 @@
"answer": "a",
"explanation": "QC080000 is the hazardous substance process management certification standard.",
"options": [
{ "id": "a", "label": "A. Hazardous substance process management standard" },
{ "id": "b", "label": "B. Occupational health and safety management system" },
{ "id": "c", "label": "C. Environmental management system" }
{
"id": "a",
"label": "A. Hazardous substance process management standard"
},
{
"id": "b",
"label": "B. Occupational health and safety management system"
},
{
"id": "c",
"label": "C. Environmental management system"
}
]
},
{
@@ -799,8 +859,14 @@
"answer": "a",
"explanation": "The standard 5S terms are sort, set in order, shine, standardize, and sustain.",
"options": [
{ "id": "a", "label": "A. Sort, set in order, shine, standardize, sustain" },
{ "id": "b", "label": "B. Sort, set in order, clean up, standardize, sustain" }
{
"id": "a",
"label": "A. Sort, set in order, shine, standardize, sustain"
},
{
"id": "b",
"label": "B. Sort, set in order, clean up, standardize, sustain"
}
]
},
{
@@ -810,23 +876,226 @@
"answer": "a",
"explanation": "You should stand on the upwind side when using a fire extinguisher.",
"options": [
{ "id": "a", "label": "A. Upwind side" },
{ "id": "b", "label": "B. Downwind side" }
{
"id": "a",
"label": "A. Upwind side"
},
{
"id": "b",
"label": "B. Downwind side"
}
]
},
{ "id": "q8", "type": "boolean", "prompt": "Normal attendance requires clock-in, and overtime must be applied for in advance.", "answer": "true", "explanation": "Both attendance and overtime follow the company attendance policy." },
{ "id": "q9", "type": "boolean", "prompt": "If you forget to clock in, you need an OA correction request.", "answer": "true", "explanation": "Missed punches must be corrected through the OA process." },
{ "id": "q10", "type": "boolean", "prompt": "Monthly salary is calculated from the 21st of the previous month to the 20th of the current month.", "answer": "true", "explanation": "The exam explicitly defines this payroll calculation cycle." },
{ "id": "q11", "type": "boolean", "prompt": "Cafeteria meals require advance booking, and face recognition can be used for dining.", "answer": "true", "explanation": "Advance booking and face-recognition dining are both supported." },
{ "id": "q12", "type": "boolean", "prompt": "In the event of fire or explosion, you should immediately call 119.", "answer": "true", "explanation": "Calling the fire emergency number is the first step in this scenario." },
{ "id": "q13", "type": "boolean", "prompt": "Dormitory residents must maintain fire awareness and must not install wires privately or use high-power appliances.", "answer": "true", "explanation": "This is a mandatory dormitory fire-safety rule." },
{ "id": "q14", "type": "boolean", "prompt": "Following safety production regulations is a safety obligation of employees.", "answer": "true", "explanation": "Safety compliance is both a rule and an employee obligation." },
{ "id": "q15", "type": "boolean", "prompt": "Employee badges may be lent to others freely.", "answer": "false", "explanation": "A badge is a personal identity credential and may not be lent out." },
{ "id": "q16", "type": "boolean", "prompt": "RoHS mainly regulates materials and processes in electrical and electronic products to better protect human health and the environment.", "answer": "true", "explanation": "RoHS focuses on restricting hazardous substances and improving environmental protection." },
{ "id": "q17", "type": "boolean", "prompt": "Our company's HSF policy is: green design, eco-friendly purchasing; resource conservation, green output.", "answer": "true", "explanation": "This is the HSF policy statement provided in the exam." },
{ "id": "q18", "type": "boolean", "prompt": "EHS stands for Environment, Health, and Safety.", "answer": "true", "explanation": "EHS is the standard abbreviation for environment, health, and safety." },
{ "id": "q19", "type": "boolean", "prompt": "External documents do not need to be controlled or managed by the organization.", "answer": "false", "explanation": "External documents also need controlled management." },
{ "id": "q20", "type": "boolean", "prompt": "Product-related requirements should include legal and regulatory requirements as well as customer requirements.", "answer": "true", "explanation": "Product requirements must cover both regulations and customer requirements." }
{
"id": "q8",
"type": "boolean",
"prompt": "Normal attendance requires clock-in, and overtime must be applied for in advance.",
"answer": "true",
"explanation": "Both attendance and overtime follow the company attendance policy."
},
{
"id": "q9",
"type": "boolean",
"prompt": "If you forget to clock in, you need an OA correction request.",
"answer": "true",
"explanation": "Missed punches must be corrected through the OA process."
},
{
"id": "q10",
"type": "boolean",
"prompt": "Monthly salary is calculated from the 21st of the previous month to the 20th of the current month.",
"answer": "true",
"explanation": "The exam explicitly defines this payroll calculation cycle."
},
{
"id": "q11",
"type": "boolean",
"prompt": "Cafeteria meals require advance booking, and face recognition can be used for dining.",
"answer": "true",
"explanation": "Advance booking and face-recognition dining are both supported."
},
{
"id": "q12",
"type": "boolean",
"prompt": "In the event of fire or explosion, you should immediately call 119.",
"answer": "true",
"explanation": "Calling the fire emergency number is the first step in this scenario."
},
{
"id": "q13",
"type": "boolean",
"prompt": "Dormitory residents must maintain fire awareness and must not install wires privately or use high-power appliances.",
"answer": "true",
"explanation": "This is a mandatory dormitory fire-safety rule."
},
{
"id": "q14",
"type": "boolean",
"prompt": "Following safety production regulations is a safety obligation of employees.",
"answer": "true",
"explanation": "Safety compliance is both a rule and an employee obligation."
},
{
"id": "q15",
"type": "boolean",
"prompt": "Employee badges may be lent to others freely.",
"answer": "false",
"explanation": "A badge is a personal identity credential and may not be lent out."
},
{
"id": "q16",
"type": "boolean",
"prompt": "RoHS mainly regulates materials and processes in electrical and electronic products to better protect human health and the environment.",
"answer": "true",
"explanation": "RoHS focuses on restricting hazardous substances and improving environmental protection."
},
{
"id": "q17",
"type": "boolean",
"prompt": "Our company's HSF policy is: green design, eco-friendly purchasing; resource conservation, green output.",
"answer": "true",
"explanation": "This is the HSF policy statement provided in the exam."
},
{
"id": "q18",
"type": "boolean",
"prompt": "EHS stands for Environment, Health, and Safety.",
"answer": "true",
"explanation": "EHS is the standard abbreviation for environment, health, and safety."
},
{
"id": "q19",
"type": "boolean",
"prompt": "External documents do not need to be controlled or managed by the organization.",
"answer": "false",
"explanation": "External documents also need controlled management."
},
{
"id": "q20",
"type": "boolean",
"prompt": "Product-related requirements should include legal and regulatory requirements as well as customer requirements.",
"answer": "true",
"explanation": "Product requirements must cover both regulations and customer requirements."
}
]
},
"procurementContract": {
"modeCompare": "Contract Compare",
"modeSolo": "Solo Review",
"modeHint": "Upload the contract files required by the selected mode",
"compareHint": "Upload our original contract and the seller-returned contract",
"selectTemplate": "Select template",
"default": "Default",
"uploadTempTemplate": "Upload temp template",
"uploadContract": "Upload contract",
"uploadOriginalContract": "Upload our original",
"uploadSellerReturnedContract": "Upload seller return",
"uploadContractToReview": "Upload contract to review",
"quickReview": "Review contract",
"quickRisk": "Risk alerts",
"quickDiff": "Template differences",
"quickSuggestion": "Revision suggestions",
"promptReview": "Please review this procurement contract and summarize the main issues and conclusion by high, medium, and low risk.",
"promptRisk": "Please focus on legal, payment, delivery, and breach-liability risks in this contract.",
"promptDiff": "Please compare our original contract with the seller-returned contract and list key modified, deleted, and added clauses with risks.",
"promptSuggestion": "Please provide revision suggestions that can be used directly in commercial negotiation.",
"llmEnhanced": "AI enhanced",
"tempTemplateChip": "Temp template: {name}",
"originalContractChip": "Our original: {name}",
"sellerReturnedContractLabel": "Seller-returned contract",
"contractToReviewLabel": "Contract to review",
"soloHint": "Solo review · no template",
"tempTemplateUploaded": "Temporary template uploaded (session only)",
"originalContractUploaded": "Our original contract has been uploaded",
"uploadFailed": "Upload failed",
"oneContractOnly": "Upload only one seller-returned contract and remove extra files",
"compareFilesRequired": "Contract comparison requires both our original and the seller-returned contract",
"defaultUserQuery": "Please {mode} for \"{file}\"",
"reviewFailed": "Review failed",
"resultTitle": "Procurement Contract Review Result",
"completed": "Review complete",
"counterpartyContract": "Counterparty contract",
"contractNo": "Contract No.",
"supplier": "Supplier",
"riskItems": "items",
"changesUnchanged": "Unchanged",
"changesCount": "Changes",
"reviewNo": "Review No.",
"mode": "Mode",
"status": "Status",
"riskSummary": "Risk summary",
"containsHighRisk": "{count} high-risk items",
"noHighRisk": "No high risk",
"sourceLibrary": "Template library",
"sourceUpload": "User upload",
"template": "Template",
"comparisonBaseline": "Our original contract",
"downloadReport": "Download review report",
"downloadDifferenceReport": "Download difference report",
"downloadAnnotated": "Download annotated contract",
"downloadAnnotatedOk": "Annotated contract download started",
"downloadAnnotatedFailed": "Failed to download annotated contract",
"anchorPage": "Source page {page}",
"downloading": "Downloading…",
"downloadOk": "Report download started",
"downloadFailed": "Download failed",
"riskHigh": "High risk",
"riskMedium": "Medium risk",
"riskLow": "Low risk",
"riskShortHigh": "H",
"riskShortMedium": "M",
"riskShortLow": "L",
"riskOk": "OK",
"riskNoFinding": "No risk found",
"changeInsert": "Insert",
"changeDelete": "Delete",
"changeModify": "Modify",
"changePass": "Covered",
"changeMissing": "Missing",
"colClause": "Clause",
"colChange": "Type",
"colRisk": "Risk",
"colTemplateText": "Template text",
"colContractText": "Contract text",
"colDetail": "Detail",
"colComparison": "Change comparison",
"unreadableComparison": "The source PDF text encoding is incompatible, so the changed content cannot be displayed reliably. Upload a Word file or a searchable-text PDF.",
"noComparisonText": "No clause comparison is available",
"noClauses": "No clause differences or red-line gaps detected.",
"statusSuccess": "Success",
"statusFailed": "Failed",
"statusRunning": "Running",
"reviewQueued": "Review submitted and queued",
"reviewRunning": "Contract review in progress",
"stepQueued": "Queued",
"stepExtracting": "Extract & clean",
"stepStructuring": "Identify clauses",
"stepComparing": "Compare & redlines",
"stepRiskScanning": "Scan risk rules",
"stepAiReviewing": "AI full review",
"stepValidating": "Validate & merge",
"stepCompleted": "Completed",
"changeRuleScan": "Red-line scan",
"changePolicyScan": "Procurement policy",
"changeLlmScan": "AI finding",
"changeOcrUncertain": "Needs confirmation",
"sectionChanges": "Contract changes",
"sectionIndependentRisks": "Independent risks",
"sectionConfirmations": "Items to confirm",
"colEvidence": "Source evidence",
"colSuggestion": "Revision suggestion",
"confirmationsHidden": "{count} additional OCR/extraction items are collapsed. Review the source or annotated contract.",
"confirmationsSummary": "{count} items are affected by OCR/extraction noise and require source verification.",
"sectionLegalRisk": "Legal and fulfillment risks",
"sectionCommercial": "Commercial items to confirm",
"sectionFormatMetadata": "Format and information changes",
"changeClassCommercial": "Commercial change",
"changeClassMetadata": "Information change",
"changeClassFormat": "Format change",
"needsReview": "Needs review",
"regionFallback": "Comparison region rules were not applied; this review safely fell back to full-document comparison.",
"attachmentAdded": "The returned contract adds {count} attachment page(s)",
"attachmentRemoved": "The returned contract removes {count} attachment page(s)",
"attachmentContentIgnored": "Attachment content is excluded from differences"
}
}