Aadhib
ENع

SYSTEM NOTE

How to build a private ChatGPT for your company: three architectures and what each keeps private

A practical guide to giving a company its own ChatGPT-style assistant: buy a business tier, put your own chat interface on a cloud API, or self-host an open model. It covers document search, access control, logging and what each option actually guarantees about your data, from the vendors' own documentation.

"Can we have our own ChatGPT, one that knows our documents and does not send anything to OpenAI?" is a request many companies make when they start with AI. It usually arrives as a single wish, but it hides three separate questions: who processes the prompts, who keeps them afterwards, and who inside the company is allowed to see what.

Most guides answer only one of them. Vendor pages say their business tier is not trained on your data. Self-hosting tutorials show a model answering on a laptop and leave out logins, permissions and logs, the parts an IT team asks about first.

This article lays out the three architectures that actually get built, what each one guarantees about your data according to the vendors' own documentation, and the work each one leaves for you. Every product detail was read off the vendor's or project's own pages on the publish date shown above, and the sources are listed at the end.

The short answer

Business tierYour own chat UI on a cloud APISelf-hosted open model
ExampleChatGPT Business or Enterprise, Claude Team or EnterpriseOpen WebUI in front of Azure, Bedrock or a vendor APIOpen WebUI in front of Ollama or vLLM on your hardware
Trained on your data by defaultNoNoNo: nothing leaves your network
Where prompts are processedThe vendor's cloudThe cloud provider and region you chooseYour machines
Retention you controlAdmin settings, more on EnterpriseDepends on provider, region and settingsEntirely yours
Document searchBuilt inYours to configureYours to configure
Effort to runLowestMediumHighest
Model qualityFrontier modelsFrontier modelsOpen models, limited by your hardware
  • If "private" means "not used for training", a business tier already gives you that. Buy it and stop personal accounts being used for work.
  • If it means "our documents and logs live in our tenant", put your own chat interface on a cloud API in a region you choose.
  • If it means "prompts never leave our building", self-host an open model, and accept that you now own the security.
  • None of the three settles PDPL or sector compliance by itself. That is a question for counsel, and nothing here is legal advice.

What a private ChatGPT is made of

Every version of this, bought or built, has the same four parts:

  1. A chat interface. The web app people type into, with conversation history, file upload and a model picker.
  2. A model. Either a commercial model behind an API or an open model you run yourself.
  3. Retrieval over your documents. Usually called RAG: your files are split into chunks, turned into embeddings, stored in a vector database, and the relevant chunks are pasted into the prompt when someone asks a question. This is what makes it "know your documents". The model itself is not retrained.
  4. Identity, permissions and logging. Who can sign in, which documents and models each person can reach, and a record of what was asked.

Privacy is decided by the weakest of the four. A self-hosted model behind a chat interface with open sign-up is less private than a well-configured business tier. A cloud API with zero retention is undermined if the embeddings are computed by a different service you never reviewed.

Option 1: a business tier of a commercial assistant

This is the fastest route and, for many small companies, the right one.

On training, the vendors are clear. OpenAI's enterprise privacy page, updated 8 January 2026, says "We do not train our models on your data by default" and "You own your inputs and outputs (where allowed by law)". Anthropic's privacy article, dated 18 August 2026, says that by default it will not use inputs or outputs from its commercial products to train models, with exceptions for feedback you submit and for cases where you choose to allow it. Team and Enterprise owners can switch feedback submission off under Organization settings, Data and Privacy.

On retention, the tiers differ. OpenAI's page says Enterprise workspace admins control how long data is retained, while on ChatGPT Business deleted or unsaved conversations are removed from its systems within 30 days.

What you do not get is a choice of where the prompts are processed in the way a cloud API gives you, and document search is limited to what the product's connectors and projects support. I compared the two main business tiers, their prices and their admin controls in Claude vs ChatGPT for business in 2027, so I will not repeat that here.

Choose this when the requirement is "not trained on, managed accounts, SSO", and nobody has written down a rule about where data is processed.

Option 2: your own chat interface on a cloud model API

Here you run the chat interface and the document store yourself, in your own cloud account, and call a model through an API. You keep the conversation history, the files and the logs. The model provider only sees the individual requests.

The details of what the provider does with those requests matter, and they are not the same everywhere.

OpenAI API. The enterprise privacy page says API business data is not used for training unless you opt in, and that "OpenAI may securely retain API inputs and outputs for up to 30 days". Zero data retention is available for eligible endpoints.

Azure, through Microsoft Foundry. Microsoft's data privacy page states that prompts, completions and embeddings are not available to other customers, not available to OpenAI or other model providers, and not used to train foundation models without your permission. Prompts are processed in the geography you choose, unless you use a Global or DataZone deployment type, in which case they may be processed elsewhere. Azure also runs abuse monitoring: when it flags content, a sample of prompts and completions may be stored and reviewed by authorised Microsoft staff. Customers could apply for modified abuse monitoring, which turns that storage off. The page's change log, dated 17 November 2026, says modified abuse monitoring will not be available for models released on or after 1 November 2026, from a date still to be announced, with at least 30 days' notice. If your plan depends on that exemption, check which models it still covers.

Amazon Bedrock. AWS documents that model providers have no access to the deployment accounts that run their models, and so no access to customer prompts and completions. Bedrock also has an explicit data retention setting, set per Region at account or project level. The mode none means no request or response data is written to durable storage. Some models require the aws_review mode, under which prompts and completions are kept within AWS for up to 30 days for review, and those models are unavailable if you choose none. You can enforce a mode across an AWS organisation with a service control policy, which is the kind of guarantee an auditor likes.

The pattern across all three: cloud APIs are private from the model maker by default, but not always zero-retention by default. Read the retention setting for the specific model you use, not the provider's headline.

Choose this when you want frontier model quality, your own document store and logs, and a contractual say over the region.

Option 3: an open model on your own hardware

This is what most people picture when they say "private ChatGPT": an open model running on a server in your office or data centre, with nothing going to any outside provider.

The model server is usually one of two:

  • Ollama for smaller deployments. Its FAQ says it binds to 127.0.0.1 on port 11434 by default, and that "Ollama runs locally. We don't see your prompts or data when you run locally." Ollama also offers cloud models now, and the FAQ says you can run in local-only mode with OLLAMA_NO_CLOUD=1. If privacy is the point, set it.
  • vLLM for heavier, multi-user GPU servers. It serves an OpenAI-compatible API. Its documentation warns that --api-key only protects some path prefixes and says "Do not rely on --api-key alone to secure vLLM". Put it on a private network behind a proxy.

I walk through installing Ollama and LM Studio and choosing a model by memory in How to run an LLM locally, and which open models are worth running on which hardware in The best local LLMs for 2027.

The trade-off is honest and unavoidable: the open models you can afford to run are behind the frontier models on hard reasoning, and your hardware sets the ceiling on model size, context length and how many people can use it at once. For summarising, drafting, searching internal documents and answering policy questions, that is often fine. For complex analysis it may not be. I use a Mac Studio for my own internal AI agents, and the reason I wrote about Mac minis for local AI deployments is that small, quiet hardware changes what is practical for a small office.

Choose this when a written rule says prompts may not leave your network, or the documents are sensitive enough that you would rather own the whole stack.

The chat interface: Open WebUI as the common layer

Options 2 and 3 both need a chat interface, and the one I would start with is Open WebUI. Its documentation describes it as a self-hosted AI platform "built to run entirely offline", with support for Ollama and OpenAI-compatible APIs. That means one interface can sit in front of a local model, a cloud API, or both, which makes the hybrid approach I described in The best architecture is sometimes hybrid easy to run.

What it covers, from its own documentation:

  • Sign-in. Built-in OAuth for Google, Microsoft and GitHub, any one OIDC provider such as Okta or Keycloak, or a trusted header from a reverse proxy. Roles and groups can be synchronised from the identity provider at each login.
  • Permissions. Roles (admin, user, pending), granular permissions and groups. The model is additive: a person gets the union of the rights from their role and their groups. Private models and knowledge bases are shared with specific groups or users.
  • Documents. Knowledge bases you upload to, a built-in vector store (Chroma), a choice of embedding engines including a built-in one and Ollama, hybrid search with re-ranking, and document extraction engines including Tika and Docling.
  • Audit logging. Controlled by AUDIT_LOG_LEVEL, from METADATA (user, IP, model, timestamp) up to REQUEST_RESPONSE (the full prompts and answers). The hardening guide says it is disabled by default.

Two cautions. First, the embedding engine is a separate choice from the chat model. If you self-host the model but point embeddings at a cloud API, your documents go to that cloud when they are indexed. Second, the licence: code from v0.6.6 onwards carries a branding clause. Internal use with the original branding is free at any scale, but changing the branding is only allowed for deployments with at most 50 people having access in a rolling 30-day period, or under an enterprise licence. If you planned to call it "Company GPT" with your own logo for 300 staff, budget for that licence.

Access control, logging and what "private" really guarantees

The step that decides whether a private ChatGPT is actually private is the one most tutorials skip. Here is what I would configure before anyone outside the project team signs in:

  1. Sign-in through your identity provider only. Turn off local sign-up. Open WebUI's hardening guide recommends keeping registration disabled and setting the default role for new accounts to pending, so nobody gets in without approval.
  2. Separate knowledge bases by audience. HR policies, finance documents and client contracts each go into their own knowledge base, shared only with the group that should see them. Retrieval does not know who is allowed to read a paragraph. It returns whatever matches, from whatever it can search.
  3. Decide what to log, and who reads the log. Metadata logging answers "who used which model, when". Full request and response logging answers "what did they ask", which is useful for investigations and is also a new store of sensitive data that needs its own access rules and retention period.
  4. Keep the model server off the network. Ollama binds to localhost by default; keep it that way, or put it behind authentication. Do not rely on a single API key in front of vLLM.
  5. Set provider retention explicitly if you use a cloud API: the Bedrock retention mode, the Azure deployment type and region, or zero data retention with OpenAI where your endpoints are eligible.
  6. Close the side door. All of this is wasted if staff keep pasting documents into personal accounts. Make the company tool the easier one.

On regulation: hosting the model locally, or in a Saudi region, does not by itself make you compliant with the PDPL. It is one fact a lawyer will weigh, alongside the lawful basis for processing, transfers, retention and who can access the data. I set out the in-Kingdom cloud options and the transfer rules in AI tools for businesses in Saudi Arabia in 2027 and the broader trade-off in Local AI vs cloud AI. This article is not legal advice. Take the specific question to counsel.

How I would choose

My default recommendation depends on what "private" means in your company, so I start by asking for it in writing.

  1. Under twenty people, no written data rule. Buy a business tier, turn on SSO, turn off feedback sharing if your policy requires it, and spend the effort on adoption rather than infrastructure.
  2. A rule about where data is processed, but no ban on cloud. Run Open WebUI in your own cloud account in front of Azure or Bedrock in a region that satisfies the rule, with retention set explicitly and your identity provider for sign-in. This gives you frontier models and your own logs.
  3. Prompts may not leave the network. Self-host: Ollama for a handful of users, vLLM on a GPU server for more, Open WebUI in front, a local embedding model, audit logging on. Pilot it with one department and one knowledge base before rolling it out.
  4. Mixed sensitivity. Run both behind one interface: a local model for confidential knowledge bases and a cloud model for general work, with groups deciding who can reach which.

Whichever you choose, pilot it for two weeks with real documents and real users before buying hardware or signing an annual contract.

If you want help choosing between these, or building the self-hosted version with proper sign-in, permissions and logging, that is what my local AI deployment work covers.

Sources

  1. 01Enterprise privacy at OpenAIOpenAI · JAN 2026
  2. 02Is my data used for model training?Anthropic · AUG 2026
  3. 03Data, privacy, and security for Foundry Models sold by AzureMicrosoft · NOV 2026
  4. 04Amazon Bedrock data protectionAmazon Web Services
  5. 05Amazon Bedrock data retentionAmazon Web Services
  6. 06Open WebUI documentationOpen WebUI
  7. 07Open WebUI licenseOpen WebUI
  8. 08Open WebUI role-based access controlOpen WebUI
  9. 09Open WebUI SSOOpen WebUI
  10. 10Open WebUI retrieval augmented generationOpen WebUI
  11. 11Open WebUI hardening guideOpen WebUI
  12. 12Ollama FAQOllama
  13. 13vLLM OpenAI-compatible servervLLM

If this was useful, follow what I’m building.

All notes →

Projects and case studies

All notes