Local AI for data analysis: in the browser or with Ollama

A local AI is a language model that runs on your own computer instead of a provider’s servers. For data analysis that is the whole point: you can ask questions about confidential files because nobody else receives them. There are two practical ways to run one, and you can switch between them.

Option 1: In the browser, nothing to install

NoEgress runs open-weight models such as Qwen 2.5 Coder, Llama 3.2 and Gemma 2 inside the browser tab through WebLLM and WebGPU. Pick a model from the top bar; it downloads once into the browser cache, roughly 1 to 5 GB depending on size, and then works offline.

This is the easiest route: a recent Chrome or Edge, a graphics chip with enough memory, and no installer, terminal or admin rights.

Option 2: Your own Ollama server

If you already run Ollama, or want a model too big for the browser, connect it instead. Start Ollama so it accepts requests from the site, then choose Ollama in the model picker and select any model you have pulled. Requests go only to localhost.

SQL
OLLAMA_ORIGINS=https://no-egress.com ollama serve

Which to choose

Both keep data on your machine. The difference is setup and model size.

What differsIn the browserOllama
SetupNoneInstall Ollama and pull a model
Model sizeUp to about 8B parametersWhatever your hardware runs
NeedsWebGPU in Chrome or EdgeOllama running locally; no WebGPU needed
Works offlineYes, after the first downloadYes

What a local model is good at

Turning a question into a query: totals, top tens, month-on-month changes, rows that match a rule. The model writes SQL and DuckDB runs it on the whole file, so the numbers are exact even when the model is small. It is weaker at vague questions and long written explanations than the largest online models, so name the columns and say what you want measured.

How to confirm it really is local

Open the browser’s developer tools, go to the Network tab and ask a question. After the model files load the first time, you will see no request carrying your data. With Ollama, the only calls go to localhost. You can also disconnect from the internet and keep working.

Frequently asked

Do I need a GPU to run local AI?

In the browser, yes: WebGPU runs the model on your graphics chip, and most recent laptops have one that works. With Ollama, models can also run on the CPU, just more slowly.

Is local AI as good as ChatGPT?

Not for open-ended writing. For turning a question about a table into SQL, a 3B to 8B model is usually enough, and the database, not the model, calculates the answer.

Does NoEgress work without the AI?

Yes. SQL, pivots, charts, profiling and cleaning all work without a model. The AI is optional.