# Ollama

> Ollama is a lightweight server that hosts open‑source language models on your own hardware and exposes them through a REST‑like endpoint. It lets you generate AI‑search results without sending data to a cloud provider.

GEO and AI search · Updated 2026-08-29 · [Marketing glossary](https://www.getlooploop.com/glossary)

**In short** Ollama runs AI models on your computer and gives you an API to ask them questions.

## What it is and how it works

Ollama downloads a model file (for example, Llama 2 or Mistral) and stores it in a local cache. When you start the `ollama serve` command, a background process opens a TCP port (default 11434) that accepts JSON payloads. The payload contains a prompt and optional parameters like temperature. Ollama loads the model into RAM, runs the inference, and streams the generated tokens back as a JSON response. Because everything stays on your machine, latency is low and no third‑party data collection occurs.

## What to do about it this week

You can start using Ollama right away to test how your brand copy performs under different model prompts.

- Install the Ollama client from the official site.
- Pull a small model (e.g., `ollama pull llama2`) to keep resource use modest.
- Create a script that sends your top‑ranking SERP snippets to `http://localhost:11434/api/generate` and logs the responses.
- Compare the generated answers with the actual Google snippets you see in search.

## How it is measured or noticed

When you query Ollama, the response includes a `prompt_tokens` and `completion_tokens` count, plus a `total_duration` field measured in nanoseconds. These metrics let you gauge the model's speed and cost. In an AI‑search monitoring dashboard, you would plot the average `completion_tokens` per query and watch for spikes that indicate the model is hallucinating or over‑generating. If the generated answer matches the brand’s target phrasing, you flag it as a positive signal.

## Common mistakes

- Running a 30 GB model on a laptop with 8 GB RAM – the server will crash.
- Skipping the `ollama pull` step and pointing the client at a non‑existent model name.
- Assuming Ollama’s output is identical to a cloud API; local models often have different token limits.
- Neglecting to set `temperature` to 0 when you need deterministic answers for testing.

## Limits and confusions

Ollama only works with models that have been packaged for its format; you cannot load a proprietary OpenAI model directly. It is not a search engine – it generates text, it does not crawl or index web pages. People sometimes confuse Ollama with “LLM‑as‑a‑service” platforms; the key difference is that Ollama gives you full control over the hardware and data flow.

## Worked example

> "I sent the prompt 'What does Brand X promise in its sustainability page?' to Ollama running Llama 2. The model returned: 'Brand X pledges to reduce carbon emissions by 30% by 2030 and uses recycled packaging for all products.'"

## Quick tip

Set `temperature` to 0 and `max_tokens` to 200 for repeatable, concise brand‑message extracts.

## Frequently asked questions

### How does this differ from using a cloud AI service like OpenAI’s API?

No, it is not a cloud service; Ollama runs locally on your own hardware. It downloads model files to a local cache and serves them through a REST‑like endpoint, so no data leaves your premises.

### Should I use a local server for testing brand copy instead of a hosted model?

It depends on your priorities; if data privacy and zero‑latency are important, a local server like Ollama is a good choice. For quick experiments without setup, a hosted API may be faster, but it sends your copy to a third party.

### How do I install a model and start generating results with this tool?

Yes, you can install a model by running the Ollama command to pull the desired model (e.g., Llama 2) which stores it in a local cache. After the download finishes, start the server and send POST requests to the endpoint with your prompt.

### Does it still work with the newest releases of open‑source models like Llama 2?

Yes, Ollama supports the latest packaged versions of popular open‑source models as long as they are provided in its format. New releases are added regularly, so check the official list for compatibility.

### What happens if I try to load a proprietary OpenAI model directly?

No, you cannot load proprietary models that are not packaged for Ollama’s format. The server will reject the request and return an error indicating the model is unsupported.

### How quickly can I see token usage and duration after a query?

Usually, the response includes `prompt_tokens`, `completion_tokens`, and a `total_duration` measured in nanoseconds right away. This information is returned in the same JSON payload as the generated text.

## Asked out loud

The same term in the words somebody uses speaking to an assistant rather than typing into a box — written from the situation, which is why each one carries the situation it came from.

### I need to check my ad copy with an AI model right now, but I don’t have internet—can I run it offline?

Yes, you can run it offline because the server hosts the model locally on your machine. Once the model is downloaded, all prompts are processed without leaving your device.

### I’m looking at this client report on my laptop and want to see how a different phrasing would rank in search without sending anything to the cloud, what can I do?

Yes, you can use the local server to generate alternative phrasing and get instant token counts. Just send your prompt to the local endpoint and review the response on the spot.

### I’m worried that sending our brand messaging to a third‑party API could leak secrets—Is there a way to test prompts locally?

Yes, you can test prompts locally by running the model on your own hardware, which keeps all data in‑house. This eliminates the risk of exposing proprietary copy to external services.

## Related terms

- [DeepSeek](https://www.getlooploop.com/glossary/deepseek)
- [Qwen](https://www.getlooploop.com/glossary/qwen)
- [Hermes](https://www.getlooploop.com/glossary/hermes)
- [hromada](https://www.getlooploop.com/glossary/hromada)

## Sources

- [Ollama documentation](https://ollama.com/docs)

Source: GetLoopLoop Glossary — https://www.getlooploop.com/glossary/ollama. CC BY 4.0: https://creativecommons.org/licenses/by/4.0/

---

Canonical page: https://www.getlooploop.com/glossary/ollama
This is the Markdown copy of that page for AI agents, made from the same content.

Other languages: [uk](https://www.getlooploop.com/uk/glossary/ollama.md) · [es](https://www.getlooploop.com/es/glossary/ollama.md) · [fr](https://www.getlooploop.com/fr/glossary/ollama.md)
