How to Add AI to Your Internal Knowledge Base: 4 Approaches for 2026

Wondering how to add AI to your internal knowledge base? Here are four ways to do it, what each one needs, and how to pick the right fit for your team.

TL;DR

  • There are four ways to add AI to a team wiki: AI answers in search, AI writing help in the editor, an outside assistant connected over MCP, or a custom build on the API.
  • AI can only be as good as the pages it reads, so clean up your content before you switch anything on.
  • Pick the approach that matches where your team already asks questions and who will look after the setup.
  • In Docmost, the AI features need the paid edition and an AI provider that a workspace admin configures.

A new hire asks in your team chat where the expense policy is kept. The page exists, and someone even updated it not long ago, but nobody can find it, so a teammate pastes the link for the fifth time this month.

AI can fix that kind of problem, but only if the pages underneath are in good shape. This guide walks through four ways to add AI to your internal knowledge base, what each one needs, and how to pick the one that fits your team.

The 4 Ways to Add AI to a Knowledge Base Compared

Feature

AI Answers

Ask AI in the Editor

MCP Connection

REST API Build

Where you find it

Search dialog

Editor toolbar

Outside assistant

Your own tool

Best for

Finding answers fast

Writing and editing pages

Working inside an AI assistant

Custom workflows

Who sets it up

Server admin sets it up, then a workspace admin turns it on

Server admin sets it up, then a workspace admin turns it on

Workspace admin turns it on, then each person connects their assistant

Developers

What it needs

Paid edition and an AI provider

Paid edition and an AI provider

Paid edition and an assistant that supports MCP

Paid edition, an API key, and developer time

You don't have to pick just one, and you don't have to do it all at once. Start with the approach that fits your team best, and add another whenever you're ready.

How to Get Your Knowledge Base Ready for AI

An AI tool answers questions by reading your pages. If two pages disagree, or a page describes a process your team dropped long ago, the AI may repeat those mistakes in its answers. A little cleanup first saves you from using bad answers later.

If your docs are still in another tool, bring them in first with Docmost's import and export options, so you can clean everything up in one place.

Clean Up Duplicate and Conflicting Pages

  • Merge or delete pages that give different answers to the same question. Keep the correct version and make it the only one.
  • Archive pages for processes that no longer exist, so the AI isn't pulling answers from them.

Make Pages Easy for AI to Read

  • Use clear titles and descriptive headings. "Travel Expense Policy" tells the AI far more than "Notes v2".
  • Write key facts out in the page text instead of leaving them only in a screenshot or video.
  • Keep one topic per page, so an answer points people to the right place.

Assign Owners and Review Dates

Every page needs a person who's responsible for keeping it correct. Agree on a review date for each important page and put it where your team will see it, like a short note at the top of the page or a recurring reminder in your calendar. This works as a team habit, so it only holds up if owners follow through. For a full walkthrough, see how to assign page owners and review dates in a wiki.

What AI Answers Does

AI Answers lets people type a question with the way they usually speak into the search dialog, the same way they'd ask a coworker, and get back a written answer gotten from your workspace pages. To try it, open search with Ctrl/Cmd + K, turn on AI Answers, type your question, and press Enter.

Behind the scenes, Docmost uses vector embeddings, a way of matching questions to pages by meaning, not exact words. For the full picture, read our simple guide to RAG for internal documentation, and see how AI search compares to keyword search for internal wikis.

What You Need to Set It Up

Requirement

Detail

Edition

Paid edition

AI provider

OpenAI (including Azure OpenAI), Google Gemini, an OpenAI-compatible provider, or Ollama

Database

A database add-on called pgvector (for PostgreSQL)

Admin step

Turn on AI Answers under Settings > AI settings

On a self-hosted install, whoever manages your Docmost server sets up the provider and the database once. After that, a workspace admin switches the feature on.

How Long Until New Pages Show Up in Answers

Docmost creates embeddings in the background, so there's a short wait before new content appears in answers.

  • New and edited pages get embeddings about 10 minutes after the change.
  • When AI search is first turned on, your existing pages are queued and processed in the background.

Permissions: AI Only Searches Pages the Person Can Open

AI Answers only searches content the person asking has permission to access. If a page is in a restricted space, someone without access won't get an answer built from it, so your permissions keep working the way they already do.

Approach 2: Use AI to Write and Edit Inside the Editor

How Ask AI Works

  • Select some text, and an Ask AI button appears in the editor toolbar.
  • Or type a custom prompt in the Ask AI field to tell the AI exactly what you want.

When It Helps

  • Tightening a long intro on a procedure page so people get to the steps faster
  • Rewriting a dense policy so it's easy to follow
  • Translating a page for teammates who work in another language

AI-written text still needs a human read, especially on pages people follow step by step.

Admin Setup

  • Admins turn on generative AI under Settings > AI settings.
  • It has the same paid edition and provider requirements as AI Answers.

Approach 3: Connect Claude, ChatGPT, or Cursor Over MCP

What MCP Lets an Assistant Do

MCP, short for Model Context Protocol, lets AI assistants work with the pages in your Docmost workspace. Once it's connected, an assistant can search, read, create, and update pages in Docmost on your behalf.

Who It Fits

MCP suits teams who already spend their day in an AI assistant. Instead of switching tabs to hunt for a page, they ask the assistant, and it pulls the answer from your wiki. It needs the paid edition, and a workspace admin has to turn it on before anyone can connect.

Set It Up

First, a workspace admin turns MCP on under Settings > AI settings. Then each person adds the server address to their assistant and signs in to Docmost. You can let the assistant only read pages, or read and edit them. To cut it off, delete it under Settings > API keys > Authorized apps. An assistant can never do more than your own account can. For every step, follow our guide on how to connect your wiki to Claude, ChatGPT, or Cursor with MCP.

Approach 4: Build Your Own With the REST API

What the API Covers

Docmost's REST API lets your own code create, read, update, and delete pages, spaces, and other resources. The API gives your own code access to your pages, and the AI part comes from whichever model your developers connect to it. It needs the paid edition and a personal API key, which follows the same permissions as the person who created it.

Who It Fits

The API fits teams with developers who want AI inside an internal tool or workflow. A support team could build a small tool that pulls the right wiki page into a ticket view, or an ops team could use a script that drafts an incident page for someone to review. To get started, see the Docmost API guide.

How to Choose Where Your AI Model Is Hosted

AI Answers and Ask AI both use whichever AI provider your admin configures, and that choice decides where your content goes when the AI reads it.

Option

Where Your Data Goes

Good Fit

Cloud model (OpenAI, Gemini)

Sent to the provider

Teams that want the quickest start

OpenAI-compatible provider

Depends on the provider

Teams that already work with a provider

Local model (Ollama)

Stays on infrastructure you control

Teams with strict data control needs

What Self-Hosting Means for Your AI Setup

If you self-host Docmost and use a local model through Ollama, the whole AI setup stays on your own servers. That changes three things for your team:

  • Data never leaves infrastructure you control.
  • You define your own compliance posture (access controls, encryption, retention) instead of inheriting a vendor's.
  • Hosting, backups, upgrades, and security patching become your IT team's responsibility.

Which Approach Should You Choose?

If Your Team...

Start With

Spends time hunting for answers

Approach 1: AI Answers

Writes and updates lots of documentation

Approach 2: Ask AI

Already works inside an AI assistant

Approach 3: MCP

Needs a custom workflow

Approach 4: REST API

AI Answers is a simple place to start, since it helps everyone who searches the wiki, and you can add the others later. If you're still picking a tool, compare your options in our roundup of internal knowledge base tools for teams, or see how Docmost's AI compares with other team wikis.

How to Test Your AI Setup With Five Real Questions

Before you tell the whole team the feature is ready, give it a quick test.

  1. Pick five questions your team asks all the time. Chat threads and questions from new hires are good places to look.
  2. Ask each one and check the answer against the page it came from.
  3. If an answer is wrong or vague, fix the source page, not the AI. AI Answers builds its answers from your pages, so the page is the first place to look.
  4. Test again after big content changes, like a reorganized space or a new policy.

Frequently Asked Questions

  1. Do I Need the Paid Edition to Use AI in Docmost?

Yes. AI Answers, Ask AI, MCP, and the API all need the paid edition. AI Answers and Ask AI also need an AI provider that a workspace admin sets up.

  1. Can I Use a Local Model Instead of a Cloud One?

Yes. Docmost works with Ollama, a tool for hosting AI models on your own servers. For AI Answers, Ollama can handle both jobs: turning your pages into embeddings, which is how search matches questions to pages, and writing the answers. If Ollama is on your own infrastructure, your content doesn't go to an outside AI provider.

To set it up:

  • Install Ollama and download one model for embeddings and one for answering questions.
  • Your server admin points Docmost at Ollama in the server settings.
  • A workspace admin turns on AI Answers under Settings > AI settings.

You still need the paid edition and the pgvector database add-on, and the model you can use depends on how much computing power your server has. If you don't want to host a model yourself, Docmost also works with OpenAI (including Azure OpenAI), Google Gemini, and any OpenAI-compatible provider.

  1. What Is an AI Knowledge Base?

An AI knowledge base is a knowledge base that uses AI to help people find answers and write content. Instead of guessing the right search keywords, people ask questions in their own words and get answers drawn from the team's own pages.

  1. Is a Knowledge Base the Same as a Wiki?

They overlap a lot. A wiki is a set of linked pages that a team writes and edits together, while a knowledge base is any organized collection of information people look things up in, for internal teams or for customers. An internal wiki can work as your team's internal knowledge base.

  1. How Do I Keep AI Answers From Going Out of Date?

Keep the pages current. AI answers come from your pages, so an outdated page leads to an outdated answer. Give each important page an owner and a review date, and when someone edits a page, Docmost updates its embeddings about 10 minutes later.

  1. Do I Need a Developer to Add AI to a Knowledge Base?

Not for every approach. On a self-hosted install, someone technical sets up the AI provider and database once. After that, admins turn on AI Answers and Ask AI in AI settings, and people use them without writing any code. Connecting an assistant over MCP doesn't take any programming. Some assistants only need the server address, while others ask you to paste a short settings snippet. A custom build on the API is the approach that needs developers.

Add AI to Your Docmost Workspace

If you want AI answers, writing help, or an MCP connection built on your own pages, with your choice of where the model is hosted, our team can help you set it up. Contact sales to get started.