How Thai companies deploy AI on their own infrastructure without leaking data under PDPA: private LLM, RAG architecture in four layers, realistic costs (PoC in 4-8 weeks), model price comparison, and a step-by-step adoption roadmap written by a Thai system integrator.
Most Thai enterprises want what ChatGPT offers, but not what it risks. Customer records, financial documents, HR files and trade secrets cannot simply be pasted into a public AI service. At the same time, employees are already using personal AI accounts quietly - a situation often called shadow AI - which creates exactly the risk that executives fear. This guide explains how organizations in Thailand deploy AI on infrastructure they control, in full compliance with PDPA, based on projects our engineering team has delivered.
1. What private LLM and RAG actually mean
A private LLM is a large language model that runs inside your own environment - an on-premise GPU server or a private cloud - so no prompt or document ever leaves your network. RAG (Retrieval-Augmented Generation) is the pattern that makes it useful: instead of relying only on what the model memorized during training, the system searches your internal documents first, then asks the model to write an answer grounded in those documents with citations.
The combination answers the two questions every Thai board asks. First, is our data safe? Yes, because the model runs behind your firewall and access control. Second, will the AI make things up? RAG reduces hallucination because the model must cite retrieved chunks, and a well-designed system refuses to answer when the documents contain nothing relevant.
2. The four-layer architecture that survives production
Demos are easy; systems that run for years are not. Across our enterprise deployments, one reference architecture keeps proving itself:
- API layer - every question enters through one gateway that authenticates the user and attaches their department and permission group. No bypass, no exceptions.
- Retrieval layer - the query is embedded, filtered by access rights, then reranked so only the top few chunks reach the model. Filtering by permission here is what prevents an intern from querying the CFO payroll folder.
- Generation layer - the prompt forces the model to answer only from retrieved context and to cite the source file for every claim. When context is missing, the system says so instead of guessing.
- Observability layer - every question, retrieved chunk, answer, token cost and per-layer latency is logged from day one. Teams that skip this layer cannot tell whether poor answers come from bad retrieval or a weak model, and debugging turns into guesswork.
The measurable result we see most often: time spent searching internal documents drops by more than half, because employees ask in plain Thai and get a cited answer in seconds.
3. Realistic costs and timelines
Enterprises rarely need the most expensive model for every task. Decision-type work - classifying tickets, routing email, scoring risk - runs on small models at a fraction of frontier-model cost. To give one concrete comparison from a 2026 benchmark: a purpose-built decision model completed structured tasks in about 0.114 seconds at roughly 0.0001 USD per case, while frontier models took 8 to 38 seconds and 0.014 to 0.176 USD per case on the same workload, with measurable rates of malformed output on top.
For a first project, expect these ranges from a competent integrator:
- Proof of concept (PoC): 4 to 8 weeks on one clear use case, typically an internal knowledge assistant over manuals, policies and contracts
- Production rollout: 3 to 6 months including access integration, evaluation sets and staff training
- Infrastructure: a single well-sized GPU server serves hundreds of employees for document Q&A; full sizing depends on concurrency and model choice
4. The PDPA checklist Thai companies should demand
- Model and vector database hosted on infrastructure you control, with a data-processing agreement in place for any private-cloud component
- Role-based access control applied at query time, not only at the document store
- Audit logs of every question and answer, retained per your policy
- Clear data-retention and deletion rules for embeddings and chat history
- A written AI usage policy so employees stop pasting secrets into personal AI accounts
5. How to start without burning budget
Begin with one painful, measurable process. Good first candidates in Thai organizations: answering policy and HR questions, summarizing invoices and purchase orders, drafting first-pass responses to customer complaints. Build a golden set of 50 to 100 real questions with known correct answers before tuning anything - if you cannot measure retrieval quality, you cannot improve it.
Then expand by evidence. Track answer accuracy, refusal quality, latency and cost per question. Upgrade the model only when the numbers say the model is the bottleneck; in our experience the bottleneck is usually document quality and chunking, not intelligence.
6. Frequently asked questions
Do we need a data-science team? No. A small platform team plus a competent integrator is enough to run the system, provided knowledge transfer and documentation are part of the delivery contract.
Thai language performance? Modern open-weight and commercial models handle Thai documents well. The deciding factor is usually tokenizer quality and how you chunk Thai text, which respects sentence boundaries rather than cutting mid-clause.
Can we start in the cloud and move on-premise later? Yes, if you design for portability from day one: keep the vector store, model gateway and evaluation harness swappable, and avoid locking business logic into one vendor SDK.
Private AI is no longer a research project - it is an infrastructure decision. Thai companies that treat it that way, with layered architecture and measured rollout, get the productivity of modern AI without handing over their data.


