Guide · Updated October 2026
Build an enterprise context layer
Every AI tool starts each session knowing nothing about your business. A context layer fixes that: one place that connects your systems, holds what the organization knows, and feeds the same picture to every model and tool. It has four parts, and the fourth, caching, is where most setups quietly go wrong.
1. A front end people actually use
Open WebUI is a self-hosted, ChatGPT-style interface for local models and any OpenAI-compatible API, including a gateway in front of cloud models. It has knowledge bases with retrieval, tools, and user groups with access control.
Read the license first. Open WebUI's license is custom, not a standard open-source license. You must keep its branding unless you have 50 or fewer end users in any rolling 30-day window, written permission, or an enterprise license.
2. Connectors to your systems
MCP (Model Context Protocol) is the standard way to let a model use a system. Open WebUI supports MCP servers natively from version 0.6.31, over Streamable HTTP, and only admins can add them, scoped to users or groups. Older stdio servers can be bridged with mcpo. Open WebUI's own docs still call OpenAPI tool servers “the preferred integration path” for most deployments.
Use a vendor-maintained server where one exists. As of October 2026:
| System | MCP status |
|---|---|
| GitHub | Official MCP server from GitHub |
| Slack | Official hosted server; for directory-published or internal Slack apps |
| Microsoft 365 / SharePoint | Official, through Microsoft's Work IQ MCP. Check licensing and preview status with Microsoft. |
| Google Drive | Official, in Google Workspace Developer Preview |
| Salesforce | Official Salesforce Hosted MCP |
| Postgres | No server from the PostgreSQL project. Vendor options: Google's MCP Toolbox, Supabase, Neon |
To find others, use the MCP Registry, which is still pre-release. Start each connector read-only, and scope it to the groups that need it.
3. A shared wiki every tool reads
Retrieval answers questions about documents. A wiki holds what the organization has decided and learned. Keep four kinds of memory apart, because mixing them is what makes context go stale:
- Raw sources: originals, never edited.
- The wiki: distilled facts and decisions, each with a source and a date.
- Tasks: work with an owner and a status.
- Handoffs: dated notes passed between people and agents.
Plain Markdown files (an Obsidian vault works well) with one short entry file that every tool reads, such as AGENTS.md or CLAUDE.md, pointing to the right pages. A scheduled job distills new material into the wiki, and marks old facts stale instead of deleting them.
4. Caches that stay fresh
Caching saves money and time at four layers. Only two can actually serve a stale answer, and those are the two to manage.
| Layer | When it goes stale | Rule |
|---|---|---|
| Provider prompt cache (Anthropic, OpenAI) | Can't serve stale facts: any change to the prompt prefix is a miss. Anthropic's default lifetime is 5 minutes, refreshed on each use; OpenAI keeps entries minutes to hours depending on settings. | Put stable content first (tools, instructions, wiki snapshot) and changing content last. |
| vLLM prefix cache (on-prem) | Keys on exact tokens, so changed documents miss automatically. | In multi-tenant setups, set a per-tenant cache salt so one tenant can't infer another's prompts from timing. |
| Response cache in a gateway (for example LiteLLM) | Goes stale when the data behind an answer changes but the question doesn't. | Short TTLs, a namespace per knowledge-base version, or delete keys when content updates. LiteLLM's own docs warn semantic caching replays stale answers in multi-turn or agent traffic; use exact match there. |
| Search index (RAG) | Stale the moment the source document changes, until it's re-synced. | Sync incrementally on a schedule or on change, remove deleted documents, and fully re-index whenever you change the embedding model. |
For the search index, Open WebUI can sync a folder incrementally, only touching new, changed and deleted files, and its companion tool oikb mirrors 44 sources (Git, Confluence, Notion, Jira, Slack and more) on a schedule or on change. Changing the embedding model requires a full re-index.
Where to start
- Write the entry file and five wiki pages for one team.
- Connect one system, read-only, through a vendor MCP server.
- Sync one document source into a knowledge base on a schedule.
- Put a gateway in front of every model call, with exact-match caching only.
- Check what the agents actually read each week, and prune what they don't.
Sources
- Open WebUI docs: MCP
- Open WebUI docs: knowledge sync
- Open WebUI docs: changing RAG settings
- oikb, Open WebUI's knowledge base sync tool
- mcpo (MCP to OpenAPI proxy)
- Open WebUI license
- MCP Registry
- Anthropic prompt caching
- OpenAI prompt caching
- vLLM automatic prefix caching (design)
- LiteLLM caching
Checked October 12, 2026. Connector status and cache defaults change often; re-check before you rely on them.