Skip to content

Commit e790737

Browse files
authored
Merge pull request #99 from resilient-tech/claude-support
feat: add Claude Haiku model
2 parents ddfea10 + 14762c8 commit e790737

17 files changed

Lines changed: 83 additions & 15 deletions

File tree

transaction_parser/parser_benchmark/doctype/parser_benchmark_dataset/parser_benchmark_dataset.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"column_break_zgpf",
3232
"google_gemini_flash_25",
3333
"google_gemini_pro_25",
34+
"column_break_clde",
35+
"claude_haiku_45",
3436
"pdf_processor_section",
3537
"pdftotext",
3638
"ocrmypdf",
@@ -183,6 +185,17 @@
183185
"fieldtype": "Check",
184186
"label": "Google Gemini Flash-2.5"
185187
},
188+
{
189+
"fieldname": "column_break_clde",
190+
"fieldtype": "Column Break"
191+
},
192+
{
193+
"allow_on_submit": 1,
194+
"default": "0",
195+
"fieldname": "claude_haiku_45",
196+
"fieldtype": "Check",
197+
"label": "Claude Haiku-4.5"
198+
},
186199
{
187200
"fieldname": "pdf_processor_section",
188201
"fieldtype": "Section Break",
@@ -301,7 +314,7 @@
301314
"link_fieldname": "dataset"
302315
}
303316
],
304-
"modified": "2026-04-13 09:37:12.298195",
317+
"modified": "2026-04-15 12:00:20.190290",
305318
"modified_by": "Administrator",
306319
"module": "Parser Benchmark",
307320
"name": "Parser Benchmark Dataset",
@@ -326,4 +339,4 @@
326339
"sort_field": "modified",
327340
"sort_order": "DESC",
328341
"states": []
329-
}
342+
}

transaction_parser/parser_benchmark/doctype/parser_benchmark_dataset/parser_benchmark_dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"openai_gpt_5_mini": "OpenAI gpt-5-mini",
1616
"google_gemini_pro_25": "Google Gemini Pro-2.5",
1717
"google_gemini_flash_25": "Google Gemini Flash-2.5",
18+
"claude_haiku_45": "Claude Haiku-4.5",
1819
}
1920

2021
PDF_PROCESSOR_FIELD_MAP = {
@@ -43,6 +44,7 @@ class ParserBenchmarkDataset(Document):
4344
)
4445

4546
amended_from: DF.Link | None
47+
claude_haiku_45: DF.Check
4648
company: DF.Link | None
4749
country: DF.Literal["India", "Other"]
4850
deepseek_chat: DF.Check

transaction_parser/parser_benchmark/doctype/parser_benchmark_log/parser_benchmark_log.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"fieldtype": "Select",
103103
"in_list_view": 1,
104104
"label": "AI Model",
105-
"options": "DeepSeek Chat\nDeepSeek Reasoner\nOpenAI gpt-4o\nOpenAI gpt-4o-mini\nOpenAI gpt-5\nOpenAI gpt-5-mini\nGoogle Gemini Pro-2.5\nGoogle Gemini Flash-2.5",
105+
"options": "DeepSeek Chat\nDeepSeek Reasoner\nOpenAI gpt-4o\nOpenAI gpt-4o-mini\nOpenAI gpt-5\nOpenAI gpt-5-mini\nGoogle Gemini Pro-2.5\nGoogle Gemini Flash-2.5\nClaude Haiku-4.5",
106106
"read_only": 1
107107
},
108108
{
@@ -423,7 +423,7 @@
423423
"in_create": 1,
424424
"index_web_pages_for_search": 1,
425425
"links": [],
426-
"modified": "2026-04-13 09:38:44.604789",
426+
"modified": "2026-04-15 12:00:33.722723",
427427
"modified_by": "Administrator",
428428
"module": "Parser Benchmark",
429429
"name": "Parser Benchmark Log",

transaction_parser/parser_benchmark/doctype/parser_benchmark_log/parser_benchmark_log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ParserBenchmarkLog(Document):
2828
"OpenAI gpt-5-mini",
2929
"Google Gemini Pro-2.5",
3030
"Google Gemini Flash-2.5",
31+
"Claude Haiku-4.5",
3132
]
3233
ai_parse_time: DF.Float
3334
ai_response: DF.Code | None

transaction_parser/parser_benchmark/doctype/parser_benchmark_token_cost/parser_benchmark_token_cost.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"fieldtype": "Select",
1717
"in_list_view": 1,
1818
"label": "AI Model",
19-
"options": "DeepSeek Chat\nDeepSeek Reasoner\nOpenAI gpt-4o\nOpenAI gpt-4o-mini\nOpenAI gpt-5\nOpenAI gpt-5-mini\nGoogle Gemini Pro-2.5\nGoogle Gemini Flash-2.5",
19+
"options": "DeepSeek Chat\nDeepSeek Reasoner\nOpenAI gpt-4o\nOpenAI gpt-4o-mini\nOpenAI gpt-5\nOpenAI gpt-5-mini\nGoogle Gemini Pro-2.5\nGoogle Gemini Flash-2.5\nClaude Haiku-4.5",
2020
"reqd": 1
2121
},
2222
{
@@ -56,7 +56,7 @@
5656
],
5757
"istable": 1,
5858
"links": [],
59-
"modified": "2026-03-27 10:36:00.699499",
59+
"modified": "2026-04-15 12:01:24.501498",
6060
"modified_by": "Administrator",
6161
"module": "Parser Benchmark",
6262
"name": "Parser Benchmark Token Cost",

transaction_parser/parser_benchmark/doctype/parser_benchmark_token_cost/parser_benchmark_token_cost.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ParserBenchmarkTokenCost(Document):
2222
"OpenAI gpt-5-mini",
2323
"Google Gemini Pro-2.5",
2424
"Google Gemini Flash-2.5",
25+
"Claude Haiku-4.5",
2526
]
2627
currency: DF.Link
2728
input_cost_per_million: DF.Currency

transaction_parser/parser_benchmark/report/transaction_parser_accuracy_analysis/transaction_parser_accuracy_analysis.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const AI_MODELS = [
1010
"OpenAI gpt-5-mini",
1111
"Google Gemini Pro-2.5",
1212
"Google Gemini Flash-2.5",
13+
"Claude Haiku-4.5",
1314
];
1415

1516
const PDF_PROCESSORS = ["PDFtoText", "OCRMyPDF", "Docling"];

transaction_parser/parser_benchmark/report/transaction_parser_accuracy_analysis/transaction_parser_accuracy_analysis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"OpenAI gpt-4o-mini": 3,
2626
"Google Gemini Pro-2.5": 4,
2727
"Google Gemini Flash-2.5": 5,
28-
"DeepSeek Reasoner": 6,
29-
"DeepSeek Chat": 7,
28+
"Claude Haiku-4.5": 6,
29+
"DeepSeek Reasoner": 7,
30+
"DeepSeek Chat": 8,
3031
}
3132

3233
_PDF_PROCESSOR_ORDER = {

transaction_parser/parser_benchmark/report/transaction_parser_benchmark_log_detail/transaction_parser_benchmark_log_detail.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const AI_MODELS = [
1010
"OpenAI gpt-5-mini",
1111
"Google Gemini Pro-2.5",
1212
"Google Gemini Flash-2.5",
13+
"Claude Haiku-4.5",
1314
];
1415

1516
const PDF_PROCESSORS = ["OCRMyPDF", "Docling"];

transaction_parser/parser_benchmark/report/transaction_parser_version_comparison/transaction_parser_version_comparison.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const AI_MODELS = [
1010
"OpenAI gpt-5-mini",
1111
"Google Gemini Pro-2.5",
1212
"Google Gemini Flash-2.5",
13+
"Claude Haiku-4.5",
1314
];
1415

1516
const PDF_PROCESSORS = ["PDFtoText", "OCRMyPDF", "Docling"];

0 commit comments

Comments
 (0)