When public AI tools are enough
If the work involves public information, marketing drafts or general research, a public AI tool is usually the fastest and cheapest option. Many providers also offer business plans that do not train on your data, which is enough for a lot of everyday use.
The question is not whether public AI is good. It is whether the specific information you want to use with it is allowed to leave your organization.
When you need a private LLM
- Your documents are confidential: contracts, financial records, internal policies, patient or citizen data.
- Regulation or contracts require data to stay in your country or inside your network, as is common for government and regulated sectors in Saudi Arabia and the UAE.
- Your environment has no internet connection at all, by design.
- You need the model to follow your domain’s language and rules closely, which calls for fine-tuning on your own material.
- You want full control over which model version runs, who can use it and what is logged.
Data residency in Saudi Arabia and the UAE
Both countries have personal data protection laws: Saudi Arabia’s Personal Data Protection Law (PDPL) and the UAE’s federal data protection law, alongside sector rules for government, healthcare and finance. Many organizations also have internal policies that keep certain data inside the country or inside their own network.
A private LLM makes these questions simpler, because the model, the documents and the logs all live in infrastructure you control. Your legal and compliance team should still confirm what applies to your data, but the architecture no longer depends on a third party’s servers.
What a private LLM stack contains
A private LLM is more than a model file. A working system has several layers, and the quality of the answers depends on all of them.
- The model: an open model such as Llama, served on your own GPU hardware or GPU instances in your own cloud account.
- The document pipeline: your documents are cleaned, split into chunks and indexed so the right passages can be found quickly.
- Retrieval (RAG): for each question, the system finds the most relevant passages, often stored in PostgreSQL with pgvector, and gives them to the model as context.
- Prompt and context design: instructions that keep answers grounded in your documents and inside the scope you define, and that make the model say when the answer is not in the documents.
- Fine-tuning (optional): training the model further on your domain so it uses your terminology and answers in the style your users expect.
- Access and logging: who may use the system, which documents each user may retrieve, and a record of what was asked.
A real example: an air-gapped LLM in Saudi Arabia
For a government organization in Saudi Arabia we deployed a complete LLM inside their own environment with no inbound or outbound connection. Llama runs on a dedicated GPU and is fine-tuned to the organization’s domain. Around 50 internal documents are chunked and indexed, with pgvector metadata mapping each one for retrieval, and the prompt design keeps every answer grounded in those documents.
Security was critical at every layer, so every component, from the model weights to the vector index, was installed and runs inside the closed environment. The system now serves other government organizations, and no data ever leaves the environment.
Common mistakes to avoid
- Starting with the biggest model available. A smaller open model with good retrieval often answers your documents more accurately and runs on far less hardware.
- Skipping document preparation. Scanned PDFs, duplicated versions and badly split chunks produce poor answers no matter which model you use.
- Letting the model answer from memory. Without clear instructions to answer only from retrieved documents, it will fill gaps with plausible but wrong text.
- Ignoring access control. If every user can retrieve every document, a private LLM can still leak information inside the organization.
How to decide
Ask three questions. Would it be a problem if this data appeared outside our organization? Are we required to keep it in-country or offline? Do we need answers in our own domain language? If the answer to any of them is yes, a private LLM is worth considering.
Start with a pilot on one set of documents and one group of users. Measure whether the answers are accurate and useful, then expand to more documents, departments and users on the same foundation.
Frequently asked questions
Can an LLM run with no internet connection?
Yes. We deployed a fully air-gapped LLM for a government organization in Saudi Arabia, with no inbound or outbound connection.
Is a private LLM as good as ChatGPT?
For general knowledge the largest public models are stronger. For answering from your own documents, a private open model with good retrieval and fine-tuning is accurate, specific to your business and keeps your data inside your environment.
Do we need our own GPU?
A private LLM needs GPU capacity, either a dedicated server in your data centre or GPU instances in your own cloud account. We size it to your users and documents.
Can a private LLM work in Arabic?
Yes. Open models can work with Arabic text, and retrieval works on Arabic documents. The model and prompts are chosen and tested for the languages your users write in.
How do we start?
Pick one set of documents and one group of users, run a pilot inside your environment, and measure answer quality before expanding.
More insights
Have a problem like this?
Build your solution design in a few clicks and get a free review, or talk it through with us on a free 30-minute call.