Test Summary Tool: ```bash curl -X POST "http://localhost:8080/api/analyze_html" -F "file=@example.html;type=text/html" ``` response: ```json { "summary": "This payslip shows earnings including base salary, allowances, and overtime pay, with deductions for advances, loans, and CPF, resulting in a net pay of 2363.40 or 4213.40. CPF contributions are also detailed.", "earnings": [ "基 本工资 (Basic Salary): 1800.00", "总加班费 (Total Overtime): 368.16", "[加班1.5倍] (Overtime 1.5x): 141.60", "[加班2.0倍] (Overtime 2.0x): 226.56", "住宿补贴 (Housing Allowance): 450.00", "特别津贴 (Special Allowance): 100.00", "交通津贴 (Transport Allowance): 300.00", "雇主公积金 (Employer CPF): 180.00" ], "deductions": [ "第一周预支 (First Week Advance): -300.00", "员工贷款 (Employee Loan): -80.00", "CDAC: -1.00", "员工公积金 (Employee CPF): -191.00", "总无薪假 (Total Unpaid Leave): -82.76" ], "additional_info": { "gross_pay": ["2935.40", "4935.40"], "net_pay": ["2363.40", "4213.40"], "cpf_salary": ["2555.40", "4555.40"], "total_cpf": ["371.00", "661.00"], "annual_leave": { "used": "1.00", "balance": "48.00" }, "medical_leave": { "used": "0.00", "balance": "14.00" }, "bank_details": { "bank": "华侨银行 (OCBC Bank)", "account_number": "151179932" } } } ``` Test Keyword Tool: ```bash curl -X POST "http://localhost:8080/api/verify_document_keywords" -F "file=@example.html;type=text/html" -F "analysis_type=legality" -F "search_context=Singapore employment law" ``` reponse: ```json { "analysis_configuration": { "analysis_type": "legality", "search_context": "Singapore employment law" }, "verification_results": [ { "claim": "基本工资 1800.00", "summary": "Claim states a base salary of 1800.00. No evidence to verify.", "status": "Needs Manual Review" }, { "claim": "[ 加班1. 5倍 ] 10. 00小时 x $ 14. 16 = 141. 60", "summary": "Claim states overtime pay at 1.5x rate for 10 hours. The calculation needs verification. No evidence to verify the hourly rate or overtime policy.", "status": "Needs Manual Review" }, { "claim": "[ 加班2. 0倍 ] 12. 00小时 x $ 18. 88 = 226. 56", "summary": "Claim states overtime pay at 2.0x rate for 12 hours. The calculation needs verification. No evidence to verify the hourly rate or overtime policy.", "status": "Needs Manual Review" }, { "claim": "员工公积金 - 191. 00", "summary": "Claim states a deduction of 191.00 for employee housing fund. No evidence to verify the legality or accuracy.", "status": "Needs Manual Review" }, { "claim": "年假 / 已用 / 余额 : 1. 00 / 1. 00 / 48. 00", "summary": "Claim states vacation leave information. No evidence to verify the accuracy or legality of the leave policy.", "status": "Needs Manual Review" } ] } ``` New tool: ```bash curl -X POST "http://localhost:8080/api/analyze_contract" -F "file=@full_pipeline_example.html;type=text/html" ``` ```json { "language": "en", "extracted_data": { "employer": { "text": "ABC PTE \t\t\t有限公司", "summary": "The employer is ABC PTE \t\t\t有限公 司." }, "employee": { "text": "\t\t\t吨啊 Kow", "summary": "The employee's name is \t\t\t吨啊 Kow." }, "pay_period": { "text": "2021\t\t\t 年9月1日 - 2021\t\t\t年9月30日", "summary": "The pay period is from September 1, 2021 to September 30, 2021." }, "salary": { "text": "2000美元", "summary": "The base salary is 2000 USD." }, "bonus": { "text": "2000美元", "summary": "The bonus payment is 2000 USD." } }, "summary_sheet_html": "\n\n
\n\n\nABC PTE 有限公司
\n吨啊 Kow
\n2021年9月1日 - 2021年9月30日
\n2000美元
\n2000美元
\n