What it covers
Running language models locally has become easy: with tools like Ollama, an open-weight model runs on your own hardware after a single command. The AI system needs no internet access in operation, and the data never leaves the building.
- Why local: Special categories of personal data under the GDPR, confidential internal information and customer data don’t belong in a public AI service.
- Limits of language models: They have a knowledge cutoff, sometimes make things up very convincingly, and only know public information, so neither internal code nor quotes or figures.
- Retrieval-augmented generation (RAG): Internal documents are split into chunks, stored as vectors (embeddings) in a database and added to the prompt to match the question. The answer links to the primary source.
- Live demo: makandra’s internal AI application, running Llama on its own servers. It shows a chat without context, the effect of system prompts, and questions to the company’s own knowledge base and source code.
- Under the hood: What requests, system prompts and embeddings look like in practice when using the API of a local model.
- Public or local: Public models offer high performance and good quality but make processing sensitive data difficult. Local models come in a wide range from Meta, Microsoft, Google or Alibaba, including image models. They are easy to run but need resources and are sometimes less capable.