EN·VI·KO·JA Contact
Services / Development Biz / AI development
[ AI development · LLM, RAG, evaluation and AI law ]

Weighed in numbers,kept on record

LLM, RAG and agent systems that answer from your own documents, weighed for accuracy, hallucination, bias and security.
AI rules in Korea, Vietnam, Japan, the EU and the US shape the design from the first workshop.

Acceptance criteria

Pass criteria agreed before we start

The readiness check ends with a signed sheet: what is measured, on which data, and the line to clear.

Acceptance plateAI-OCR-01 · set before training
Max 1.00Min 0.95e = 0.01F1 · totals, tax codes(example)
BMBusiness measureMinutes saved per invoice; defects reaching customers
MMModel measureField-level F1; recall at a fixed false-alarm rate
THRThresholdF1 ≥ 0.95 on totals and tax codes (example)
CNDConditionsNight, rain, blurred scans, each language
OWNTest data ownerBuilt and held by a team that does not train the model
Sign-offThree lead seals on one wire: the work starts when all three are set.
BOBusiness owner
AIAI lead
QAQA lead
Sign-offThree owners sign before work starts
Acceptance criteriaFive fields, written before training
Criteria signed · agreed before use
LLM readiness

Is your library ready to answer?

Before any model, we catalogue what the documents are, who owns them and who may read them.

Sources

Shared drives, groupware, wiki, ERP notes, email folders

Formats

Word, PDF, scans, spreadsheets, drawings, slides

Versions

Which rule is current; old versions marked or removed

Owners

One owner per collection who answers for its content

Permissions

Who may read what, carried over from the source systems

Languages

KO · VI · EN · JA mix and the terms that differ between them

Real questions

100 questions collected from staff, with the right answers (example)

Office shelves · seven places to check first
RAG architecture

Six steps from question to answer

Retrieval-augmented generation: the model reads your passages first, then writes.

One passage on the screen, magnified
IT-AST3.2p.52026rerank 1 of 20

IT asset policy — 3.2 Laptops

✂ §3.2 · one clause = one chunk

3.2 New hires receive one laptop on their start date. New hires in the design team receive a high-spec model.

✂
1. Laptop 2. Onboarding 3. IT assetsvector · 1,024 dimsread: all staff · lang KO · in force 2026-01
cited as [1] in answer line 1✓ supported by the passage
When documents go in
Parse

Documents become clean text with headings, tables and page numbers.

Chunk

Split along sections, not at a fixed character count.

Index

Keyword index plus vector embeddings, filtered by permission.

When a question comes
Retrieve & rerank

Hybrid search, then a reranker keeps the best few passages.

Generate

The LLM answers only from those passages, citing each one.

Check

Unsupported sentences are flagged; “not found” is an allowed answer.

Documents prepared for LLMs

Scans, tables and drawings as text

Most wrong answers start with a badly read document, so parsing gets its own work package.

Scanned pages
Headings & clauses
Metadata
Marks on what a parser must keep
Out of the parser · one guide card per case
Scanned pages

OCR with the review step we use in OCR Editor.

page 1 · 14 lines · OCR conf. 0.97 → passed
Tables

Rows and columns kept as tables, not flattened into lines.

| Item | Qty | Unit price | → kept as a table, not prose
Headings & clauses

Clause numbers become the address of each passage.

Title › Part 1 › Line 3 = the address of the passage
Drawings & photos

Captions and title blocks extracted; images described where useful.

drawing: title block read · caption kept · described
Metadata

Type, entity, language, effective date and permission on every chunk.

type=handout · entity=HQ · lang=en · perm=all staff
RAG or fine-tuning

RAG or fine-tuning, and when

Retrieval gives the model facts; fine-tuning gives it habits. Many systems need a little of both.

Promptinginstructions + examples
Fine-tuningLoRA adapter
RAGindex, not model
RAGFacts that change monthly

Update the index, not the model.

RAGAnswers must cite sources

Citations come from the retrieved passages.

Fine-tuning (LoRA)A fixed output format or tone

A small adapter learns the pattern from examples.

BothDomain terms in four languages

A term dictionary in retrieval plus tuning on examples.

Fine-tuningA smaller, cheaper model

A tuned small model can replace a large one on a narrow task.

PromptingOnly a pilot for a few users

Start with instructions and examples; tune later if needed.

Shelf notes

RAG — change the index and the answer changes; the model weights stay as they are.

LoRA — the original weights stay frozen and only a small low-rank adapter is trained; QLoRA does it on 4-bit weights.

On-premise LLM

An LLM that stays in your building

Open-weight models served on your own GPUs, for data that cannot go to a public cloud.

LLM
question
answer + sources
export · blocked✕
Closed stacks · company network · nothing leaves
Model choice

Open-weight families compared on your questions in KO · VI · EN · JA, licence terms read first.

Serving

vLLM or Triton behind an internal gateway with sign-in and logs.

Quantization

4- or 8-bit weights to fit the model on fewer GPUs.

16-bit8-bit4-bit
Sizing

300 staff, 20 at once → two 48 GB GPUs for a mid-size model (example).

GPU 1 · 48 GBGPU 2 · 48 GB
Updates

New model versions pass the same question set before they replace the old one.

Ontology & knowledge graph

A knowledge graph of terms and links

For questions that need several hops, from a machine to its line, its failures and its supplier.

is on
failed with
part from
EquipmentWinder W-07
Line · Binh Duong plantLine 2
Failure recordRoller bearing, Sep 2026
SupplierHanbit Precision
Question (example)If W-07 stops, which supplier do we call? → 3 hops
Authority entry · one meaning, four languages
KO권취기VIMáy cuộn sợiENWinderJAワインダー

see fromwinding machine · cone winder

see alsobobbin · Line 2 · W-07 maintenance manual

  • Objects

    People, teams, equipment, sites, partners, documents.

  • Relations

    Which machine is on which line; who approves what.

  • Term dictionary

    One meaning for a term in KO · VI · EN · JA, as in AI Ontology.

  • Graph + retrieval

    The graph finds the related records; retrieval finds the passages.

  • Change history

    Every change to the model recorded and reversible.

Test data

Test data the model never saw

A score is only as honest as the data it was measured on.

S1Night video
S2Rain video
S3VI scans
S4JA forms
S5KR ID cards
Sealed test drive · never used for training
Seal stickers on the test set
  1. No.001
    Held out and locked

    Set aside before training; never used to tune.

  2. No.002
    Split by condition

    Shifts, seasons, cameras, document templates and languages each represented.

  3. No.003
    No leaks

    Near-duplicate images and the same person or document kept on one side only.

  4. No.004
    Independent labels

    Golden labels made by AI Data Biz and checked by QA Biz, not by the builders.

  5. No.005
    Refreshed, not replaced

    New conditions added as a new slice; old slices kept for comparison.

Metrics per task

A different accuracy metric per task

“95 % accurate” means little until you know which metric, on which data and at which threshold.

Each task, its own metric“95 %” — of what?metric · data · threshold
The dashboard the team reviews
Calibration weight set · one weight per taskmetric · test data · threshold
W1Detection

mAP@0.5:0.95; recall at N false alarms per hour

W2Segmentation

IoU and boundary F-score per class

W3Face recognition

False match and false non-match rates at the operating threshold

W4OCR

Character error rate; field-level F1 for key fields

W5LLM answers

Correctness, groundedness, citation accuracy, refusal when unknown

W6Forecasting

WAPE or MASE against a naive baseline

W7Anomaly detection

Precision in the top-k alerts reviewers can handle

Red teaming

Finding weak spots by attacking

Testers try to make the system misbehave, using OWASP’s LLM Top 10 (2025) and MITRE ATLAS as checklists.

✓
✓
Touchstone · one streak per attack · results (example)
01Prompt injection

Hidden instructions inside an uploaded PDF

found → fixed
02Sensitive data disclosure

Asking for a colleague’s salary in a roundabout way

held
03Excessive agency

Talking an agent into sending a payment

found → fixed
04System prompt leakage

Getting the bot to print its hidden rules

held
05Vector & embedding weaknesses

Poisoned documents planted to steer retrieval

held
06Adversarial images

A printed patch that hides a person from a detector

held
ChecklistsOWASP LLM Top 10 (2025)MITRE ATLAS
Attacker’s seat120 attempts per release (example)
We attack it before anyone else does
AI law by country

AI rules in five regions at a glance

Status as of October 2026, and what each rule asks of a system we build.

solid glass: binding law with dutiesdashed glass: voluntary framework at the corenational standard weights · Oct 2026
Vietnamin force 2026-03-01

Law on Artificial Intelligence 134/2025/QH15 (from 1 Mar 2026) and Decree 142/2026/ND-CP; PDP Law 91/2025/QH15 and Decree 356/2025/ND-CP

What it asks of a system we build

Risk level set before use; labels on synthetic media; serious incidents reported; systems already in use adapt by 1 Mar 2027 (1 Sep 2027 for health, education, finance)

Koreain force 2026-01-22

AI Basic Act (in force 22 Jan 2026) and its Enforcement Decree; PIPA

What it asks of a system we build

Users told when generative or high-impact AI is used; generated content marked; risk management and human oversight for high-impact AI; a fine grace period of at least a year

Japanin force 2025-09

AI Promotion Act (Act No. 53 of 2025, fully in force Sep 2025), AI Basic Plan, AI Guidelines for Business (METI · MIC); APPI

What it asks of a system we build

No penalties; voluntary governance expected along the guidelines, now covering AI agents

European Unionamended 2026-07-27

AI Act (EU) 2024/1689 as amended by the Digital Omnibus on AI (in force 27 Jul 2026); GDPR

What it asks of a system we build

Prohibitions and AI literacy since Feb 2025; transparency duties from Aug 2026; Annex III high-risk from 2 Dec 2027, product-embedded from 2 Aug 2028

United Statesvoluntary + state laws

NIST AI RMF 1.0 and Generative AI Profile (NIST AI 600-1); state laws such as Texas TRAIGA and California SB 53 (from 1 Jan 2026), Colorado’s rewritten law planned for 2027

What it asks of a system we build

Voluntary risk framework widely used in contracts; state duties differ, and federal preemption is being pursued

Records & management system

Model cards and evaluation records

What you receive at handover, signed by the evaluation lead and ready for your own auditor to use as it is.

Evaluation record · handoverCertificate of evaluationAI-OCR-01 · v2.0 · (example)
  1. ✓
    Model card

    Intended use, out-of-scope use, metrics per condition and slice, known limits

  2. ✓
    Datasheet

    Sources, consent, labelling rules, splits, retention

  3. ✓
    Evaluation report

    Test results, LLM scorecard, red-team findings and fixes

  4. ✓
    Impact assessment

    Who is affected, how, and the safeguard for each

  5. ✓
    Change & incident log

    Every version, approval and incident with its response

Signed by the evaluation lead · approved by you
Signed
v2.0
Binder · every version kept
v1.02026-03
v1.12026-06
v2.02026-10

Same template each version (example)

Model cardAI-OCR-01 · v2.0
Change & incident logevery version, approval and incident has a time
Records handed over with the model
FAQ

AI development questions

How is this different from uploading files to a public chatbot?

Documents stay in your systems, permissions are respected, every answer cites its source, and you can choose where the model runs.

Can you promise 99 % accuracy?

We promise the measurement, not a number in advance: the metric, test data and threshold are agreed first, and results are reported per condition.

What happens when the answer is not in the documents?

It says so and suggests who owns the topic. Unanswered questions are collected so owners can add the missing document.

Who evaluates the model — the team that built it?

No. QA Biz tests on data the build team never saw, so the builder is not grading its own work.

Can we ask in Korean and get answers from Vietnamese documents?

Yes. Multilingual retrieval finds the passage in any of KO · VI · EN · JA, and the answer shows the original next to a translation.

Does the EU AI Act apply to a system built in Vietnam?

It can: the Act looks at where a system is placed on the market or where its output is used, not where it was coded. We map this early.

Are we locked into one LLM vendor?

No. Models sit behind a gateway, so a commercial API, an open-weight model or both can be swapped after passing the same question set.

What if our system counts as high-impact AI under Korea’s AI Basic Act?

We build in the risk management, explanation, human oversight and records the Act expects, and prepare the user notice from the start.

How many GPUs does an on-premise LLM need?

It depends on model size, users at the same time and answer length. We size it from a load test on your own questions before you buy hardware.

Where does fine-tuning data come from?

From your past documents and approved answers, written and reviewed with AI Data Biz, which builds instruction and preference data.

Tell us what you
need built.

A specialist replies within one business day — in English, Vietnamese, Japanese or Korean.

Book a consultationContact us
↑Back to top