18Local AI Apps: Open WebUI, LM Studio & Private RAG
Give yourself or a whole office a private ChatGPT-style workspace with document chat — Open WebUI, LM Studio, AnythingLLM and Jan — and deploy it for a client.
What you'll learn
- Install Open WebUI on top of Ollama
- Chat with your own documents privately
- Compare LM Studio, AnythingLLM, Jan and GPT4All
- Plan a private AI setup for a small office
Open WebUI: a private ChatGPT for your team
Open WebUI is a self-hosted web interface for Ollama (and any OpenAI-compatible API) with chat history, multiple users, document upload (RAG), model switching, web search and more.
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
--name open-webui --restart always \
ghcr.io/open-webui/open-webui:main
Open http://localhost:3000. The first account you create becomes the admin. Ollama models appear automatically.
pip install open-webui
open-webui serve # then open http://localhost:8080
Requires a supported Python version (see the Open WebUI docs).
Chat with a model
Pick a model in the top-left dropdown (e.g. qwen3:8b) and start chatting. Everything stays on your machine.
Chat with a document
Click + in the message box, upload a PDF or DOCX, and ask about it. Open WebUI chunks and embeds it for retrieval.
Create a knowledge base
Workspace → Knowledge: upload your SOPs, price lists and FAQs once. Reference it in any chat with#.Build a custom assistant
Workspace → Models: pick a base model, add a system prompt and attach a knowledge base — e.g. “HR Policy Assistant”.Add users
Admin Panel → Users: invite colleagues and set roles. Each person gets private chats.
Desktop apps: no terminal required
| App | Best for | Highlights |
|---|---|---|
| LM Studio | Non-technical users; exploring models | Search and download models in-app, shows what fits your hardware, local OpenAI-compatible server |
| AnythingLLM | Document chat and simple agents | Workspaces per project, drag-and-drop docs, built-in agent skills, works with Ollama or its own runtime |
| Jan | Offline, open-source ChatGPT alternative | Clean UI, local models, optional cloud models |
| GPT4All | Older or modest laptops | Runs on ordinary CPUs, LocalDocs for private document chat |
| Open WebUI | Teams and offices | Multi-user, admin controls, knowledge bases, browser-based |
Making private document chat accurate
| Setting | Recommendation |
|---|---|
| Embedding model | Use a dedicated embedding model (e.g. nomic-embed-text) rather than the default if answers miss obvious passages. |
| Chunk size | Smaller chunks (~500 tokens) for FAQs and policies; larger for narrative documents. |
| Top-K | Retrieve 4–8 chunks; too many dilutes the answer. |
| Chat model context | Increase context length so retrieved chunks and your question both fit. |
| Document quality | Clean, text-based PDFs work best. Scanned images need OCR first. |
Blueprint: private AI for a small office
A service you can sell (Lesson 23): a law office, clinic or accounting firm that can't send documents to cloud AI.
Scope the use cases
E.g. “summarize case files”, “draft letters from templates”, “Q&A over the office manual”. Collect sample documents.
Size the hardware
Pick the model that passes your test questions, then choose hardware with headroom (see Lesson 15).
Install & harden
Ollama + Open WebUI in Docker, auto-start on boot, admin account secured, sign-ups disabled, access only via LAN or Tailscale.
Load knowledge & build assistants
Create knowledge bases and custom models per workflow with clear system prompts.
Train the team (1–2 hours)
Prompting basics, what not to rely on, how to verify answers.
Maintain
Monthly updates, backups of the Open WebUI data volume, model upgrades, usage review.
Key takeaways
- Open WebUI turns Ollama into a multi-user, private ChatGPT with document chat.
- LM Studio, AnythingLLM, Jan and GPT4All offer local AI without a terminal.
- Good private RAG depends on embedding model, chunking, top-K and context size.
- A private office AI setup is a concrete, sellable service for privacy-sensitive clients.
Knowledge check
0 / 3Q1Who becomes admin in a fresh Open WebUI install?
The first sign-up is the administrator — create it immediately.
Q2Best app for a non-technical person to explore local models?
LM Studio has an in-app model browser and friendly UI.
Q3Private RAG misses obvious answers. First thing to check?
Retrieval quality is usually the culprit, not the chat model.