|
Download README.md from icdevelop/tai1-kb: direct link, hf CLI and curl.
- Browser
- Download file 7.14 kB
-
https://huggingface.co/datasets/icdevelop/tai1-kb/resolve/main/README.md
- Command line
-
hf download hf://datasets/icdevelop/tai1-kb/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/icdevelop/tai1-kb/resolve/main/README.md
7.14 kB
| license: other | |
| license_name: thai-government-works | |
| language: [th] | |
| tags: [thai, tax, legal, accounting, rag, knowledge-base] | |
| extra_gated_heading: "Accept the terms before using TAI-1 (Thai Account Assistant)" | |
| extra_gated_prompt: | | |
| TAI-1 produces DRAFT accounting entries. Its tax rules and account mappings have NOT been | |
| reviewed by a licensed Thai accountant or auditor, and its outputs may be wrong. By requesting | |
| access you agree that: | |
| (1) You will have every output REVIEWED by a licensed bookkeeper (ผู้ทำบัญชี) or auditor | |
| (ผู้สอบบัญชี) before it is posted to a ledger, filed with the Revenue Department, or used | |
| in any financial statement. | |
| (2) You will not treat the model's outputs as tax or legal advice, and will not present them to | |
| any third party as the opinion of a licensed professional. | |
| (3) You will supply the applicable tax rules through the prompt (retrieval) rather than relying | |
| on rates memorised in the weights — Thai tax rates and filing forms change by law. | |
| (4) You understand that I C Develop Co., Ltd. accepts no liability for use that violates these | |
| terms. | |
| TAI-1 สร้าง "ร่าง" การลงบัญชี เกณฑ์ภาษีและการจับคู่ผังบัญชียังไม่ผ่านการตรวจสอบโดยผู้ทำบัญชี | |
| หรือผู้สอบบัญชีที่มีใบอนุญาต ผลลัพธ์อาจผิดได้ การขอสิทธิ์เข้าใช้งานถือว่าท่านยอมรับว่า | |
| (1) จะให้ผู้ทำบัญชีหรือผู้สอบบัญชีตรวจสอบทุกผลลัพธ์ก่อนบันทึกลงสมุดบัญชี ยื่นต่อกรมสรรพากร | |
| หรือนำไปใช้ในงบการเงิน | |
| (2) จะไม่ถือว่าผลลัพธ์เป็นความเห็นทางภาษีหรือกฎหมาย และจะไม่นำเสนอต่อบุคคลอื่นในลักษณะที่ | |
| ทำให้เข้าใจว่าเป็นความเห็นของผู้มีวิชาชีพ | |
| (3) จะส่งเกณฑ์ภาษีที่ใช้บังคับเข้ามาทาง prompt แทนการพึ่งอัตราที่ฝังอยู่ใน weights เพราะอัตรา | |
| ภาษีและแบบยื่นของไทยเปลี่ยนตามกฎหมาย | |
| (4) บริษัท ไอ ซี ดีเวลลอป จำกัด ไม่รับผิดชอบต่อการใช้งานที่ขัดกับเงื่อนไขข้างต้น | |
| extra_gated_fields: | |
| I accept all 4 terms and will have a licensed accountant review every output: checkbox | |
| Organization / intended use: text | |
| # TAI-1 Reference KB — Thai tax and financial-reporting texts for retrieval | |
| The knowledge base TAI-1 is meant to be served with. **The model needs this context to reach | |
| the numbers on its card** — without it the tax axis falls from 100% to 36.7%. | |
| ## Contents — 245 chunks | |
| | doc | document | chunks | | |
| |---|---|---:| | |
| | `dbd-fs-2566` | ประกาศกรมพัฒนาธุรกิจการค้า เรื่อง กำหนดรายการย่อที่ต้องมีในงบการเงิน พ.ศ. 2566 | 104 | | |
| | `dgvat-17` | ประกาศอธิบดีกรมสรรพากร เกี่ยวกับภาษีมูลค่าเพิ่ม (ฉบับที่ 17) | 6 | | |
| | `dgvat-42` | ประกาศอธิบดีกรมสรรพากร เกี่ยวกับภาษีมูลค่าเพิ่ม (ฉบับที่ 42) ฉบับรวมแก้ไข | 10 | | |
| | `rc-s65-76` | ประมวลรัษฎากร มาตรา 65–76 จัตวา (ภาษีเงินได้นิติบุคคล) | 43 | | |
| | `rc-s82-5` | ประมวลรัษฎากร มาตรา 80–82/18 | 33 | | |
| | `rd-doc-manual` | คู่มือการจัดทำเอกสารประกอบการลงบัญชีที่สามารถเป็นรายจ่ายทางภาษีได้ | 18 | | |
| | `tp-4-2528` | คำสั่งกรมสรรพากรที่ ท.ป. 4/2528 (ฉบับรวมแก้ไข) | 31 | | |
| Every one is a **law, Director-General notification, or official manual** of the Thai Revenue | |
| Department or the Department of Business Development, fetched from rd.go.th and dbd.go.th. | |
| Under **section 7 of the Thai Copyright Act B.E. 2537**, laws, regulations, notifications and | |
| official orders are not copyright works, so they may be redistributed. Per-URL provenance is in | |
| `legal-sources.json`. | |
| ## ⚠️ What is deliberately **not** here | |
| **TFRS for NPAEs** belongs to the **Federation of Accounting Professions (TFAC)**. It is not a | |
| government work under section 7, so we cannot redistribute it — and a private repository is | |
| access control, not a licence. | |
| **No reported number depends on it.** It has never been placed in any prompt, checkable three | |
| ways: `sources.json` has always carried `retrieve_for: []` for it, the evidence axis records its | |
| own context as 18 chunks (the Revenue Department manual exactly), and running the retriever over | |
| all 60 evidence cases returns 360 chunks all from that manual. See `ADD-YOUR-OWN-TFRS.md` to add | |
| your own licensed copy. | |
| ## Using it | |
| `kb_retrieve.py` here is **the same retriever used to build the training data**. Use it rather | |
| than writing your own — retrieval scope moved accuracy by 9 points in our measurements with no | |
| change to the weights. | |
| ```python | |
| import kb_retrieve | |
| kb = kb_retrieve.load_kb("reference_kb.jsonl") | |
| ctx = kb_retrieve.render([c for c in kb | |
| if c["doc"] in kb_retrieve.KIND_DOCS_NARROW["vat"]]) | |
| ``` | |
| **Send whole documents for tax questions; do not chunk them.** Chunk-level retrieval measured 13 | |
| points worse even when it surfaced the correct clause: these questions are answered by a rule's | |
| *absence*, and "not prohibited" is only knowable from the complete list. The financial-statement | |
| questions are the exception — their candidate answers are already in the prompt, so chunk | |
| retrieval is fine there. **Question type decides retrieval mode, not document size.** | |
| ## ⚠️ Statutes change | |
| This is a snapshot taken on the fetch date. Thai tax law is amended often, and one rate in it | |
| (1.0% e-withholding) expired 31 December 2025. Before using it against back-dated documents, | |
| check rd.go.th for the version in force on the document's own date. | |
| --- | |
| I C Develop Co., Ltd. · public release under continuing review — the access gate's accountant-review condition applies to every use | |