Blog / AI and automation
Running AI models locally to keep client data private
Most AI features send your data to a provider’s servers to be processed. For many uses that is fine. For legal files, medical records, financial data or client work under strict contracts, it may not be, and “we promise not to train on it” is not the same as “it never left the building”.
The alternative is to run open models on your own hardware. We do this ourselves: Nax AI, our internal system, runs on one laptop with 8 GB of graphics memory.
What open models can do now
Openly available model families, such as Qwen, Llama and Gemma, now handle a lot of everyday business work well:
- summarising long documents
- pulling structured data out of invoices, forms and emails
- answering questions from your own documents, with sources
- drafting replies and reports
- classifying and routing incoming messages
- reading screenshots and scanned pages, with vision models
They are still behind the largest hosted models on hard reasoning, long chains of steps and very complex writing. For many business tasks, the gap does not matter.
What hardware it takes
The main limit is memory on the graphics card. Smaller models, compressed to use less memory, run on a good laptop or a modest desktop graphics card. Larger models need more expensive hardware or a dedicated server in your own premises or private cloud. More memory buys you bigger models, better answers and faster responses.
Tools such as Ollama and llama.cpp make running models locally straightforward. The engineering work is around them: connecting them to your documents, your systems and your staff.
The trade-offs
- Quality. Smaller local models make more mistakes than the best hosted ones. Test them on your own tasks before you decide.
- Speed. On modest hardware, answers take longer, especially for long documents.
- Maintenance. You update models and software yourself.
- Cost shape. A one-off hardware cost instead of per-use fees. Heavy use favours local; light use often favours hosted.
A mixed setup often works best
Sensitive work runs locally. Non-sensitive work, such as drafting public marketing copy, can use a hosted model. The rule that decides which goes where is written down and enforced by the system, not left to each person’s judgement. In Nax AI, cloud providers are an allowlist that starts empty: if nothing is ticked, no cloud call is possible.
How to start
- Pick one task with sensitive data and a clear right answer.
- Collect 30 to 50 real examples with the correct results.
- Try two or three local models on them and score the results.
- If one is good enough, build the workflow around it, with a person checking its work.
Answering from your own documents
Most useful private AI is not about the model knowing things. It is about the model reading your documents and answering from them. The usual pattern works like this:
- Split your documents into small passages.
- Turn each passage into a list of numbers that captures its meaning, called an embedding, and store them in a database. We use Postgres with the pgvector extension.
- When someone asks a question, find the passages closest in meaning.
- Give only those passages to the model, and ask it to answer from them and cite which ones it used.
All four steps can run on your own hardware. The result is an assistant that answers from your policies and records, shows its sources, and says so when the documents do not contain the answer.
Where this comes from. We do this work for clients. See AI automation and agents, or the case study on Nax AI.
Questions about this post? Email contact@naxfront.com. Nancy reads every one.