Search internal knowledge with an AI agent: how an AI knowledge base works

An AI agent can search your internal knowledge like a colleague who has read everything once. You ask a question in plain language, the agent searches the sources it has read access to, and you get an answer with its location: which document, which page, which email. The agent can also summarize, compare two versions, or pull together everything about one project. You decide what to do with the answer.

An AI knowledge base is a set of your own documents and notes that an AI agent can search, summarize, and cite, so every answer shows where it came from.

Below, you will read what an AI knowledge base does, the three ways to give an agent access to your documents, and how we handle it ourselves at Voltti. After that come the agreements that keep it safe and a first step you can take this week.

Loose documents from different folders coming together through an AI agent in one searchable knowledge base

What does an AI agent do with your internal knowledge?

An AI agent finds answers in your documents, summarizes and checks them, and prepares the knowledge for each project, always with the location attached.

The first job is finding things. Where is the delivery-time agreement with that customer? Which version of the manual is the latest? The agent searches by meaning, not just the exact word, and opens the document to check the answer before it says anything.

The second job is summarizing and checking. A long contract becomes a short list of the points that matter, and for quotes and contracts the agent flags what differs from your standard. You can see how that fits into a full process under document review in the five processes to start with. The agent also translates texts and prepares the knowledge your team needs for each project: decisions, contacts, open questions, and the documents that go with them.

Having AI analyze text is already common. According to Eurostat, 23.0 percent of Belgian and 22.9 percent of Dutch businesses with ten or more employees used AI to analyze written text in 2025. In both countries, that is the most widely used AI technology.

How is this different from a search box or a chatbot?

A search box returns a list of files, and a chatbot only knows the document you upload. An agent searches several sources, compares them, and saves the result where your team can find it.

To do that, the agent takes several steps in a row, with tools: it opens what looks relevant and asks a follow-up question when something is missing. Read more about that difference in the 7 differences between an AI agent and a chatbot.

An agent also remembers what was discussed. Hermes, the open-source agent we work with, stores earlier sessions and can search them. That way the agent finds what was decided in a conversation last week, even if it never ended up in a document. The Hermes memory documentation explains how that works.

What are the three ways to give an agent access to your knowledge?

There is no single right setup. Which one fits depends on how many documents you have, how often they change, and how often the same questions come back. The table shows the three routes side by side.

ApproachHow it worksGood forWatch out for

Searching the sources directly

The agent gets read access to a folder, drive, or system and only searches when you ask a question

Always the latest version, little setup

Slower with large volumes, every question starts from scratch

Search index (RAG)

The documents go into a search index in chunks ahead of time; for each question, the agent retrieves the best matching chunks

Large archives and fast answers

The index has to keep up with every change, loose chunks sometimes lose context

Knowledge base the agent maintains

The agent reads a new source once and works it into notes per topic, with the source attached

Questions that keep coming back and knowledge per project

Needs upkeep and someone who chooses the sources

The first route is the easiest start. With Hermes, you often connect a source through MCP, an open standard for attaching tools and data sources to an agent. The Hermes MCP guide recommends starting with one server, such as access to a single project folder, and allowing only the tools you need right away. Read which connections make sense in connecting AI to your CRM, CMS, and project tools.

RAG stands for retrieval-augmented generation: retrieve first, then answer. It is the common solution for large archives, but the quality depends on how you split the documents into chunks. A clause that refers to an appendix can easily lose its meaning that way.

The third route is newer. In April 2026, Andrej Karpathy described the LLM Wiki pattern. Instead of searching for fragments again with every question, the agent builds a set of linked markdown notes and keeps them up to date. Karpathy sums up the difference with RAG like this: "The knowledge is compiled once and then kept current, not re-derived on every query." In practice, the agent processes a new source once, flags contradictions, and updates the summary.

Hermes ships that pattern by default as the llm-wiki skill. The division of labor is clear: people choose the sources, and the agent summarizes, connects, and keeps everything consistent. You can also combine the routes. An agent can start in the knowledge base and still open the original document for the details.

What does such a knowledge base look like at Voltti?

At Voltti, our own Hermes installation keeps a knowledge base in plain markdown files, following that LLM Wiki pattern: one note per topic, with its sources.

There is also an index with one line per note and a log of what changed. For example, one note holds facts from the Hermes documentation, including the date they were read, and another holds decisions that have already been made.

Before an audit or an article, the agent first reads the matching note. Decisions we confirm go into that note, so the agent does not ask about them again next time. Every change goes into the version history separately, so you can look back at when something changed. A note does not replace the source: anyone who uses a fact in a text checks it in the original source.

How do you keep an AI knowledge base safe?

Start with access. Give the agent read access to the sources it needs and nothing more. Write access belongs only where the agent saves its results, such as the project documentation.

Also think about who may see what. The agent reads with the access you give it, not with the permissions of the person asking. An agent that searches the whole company can therefore answer from a document the person asking was not allowed to open. So work with a separate environment per team or department. In Hermes, each profile has its own sessions, memory, and credentials, and profiles do not share them.

Documents can also contain instructions that were not meant for the agent. OWASP calls this indirect prompt injection: text in a file or on a web page that changes how the model behaves. So do not let the agent act on what it reads in a document without a person checking.

And where does your data go? With a cloud model, the text needed for a question goes to the model provider. With a local model, that stays inside your network too. Read what stays local in a hybrid AI setup and how we handle security and privacy. If you want to keep everything in-house, look at local AI for businesses.

If those sources contain personal data, such as HR files or customer emails, the GDPR applies as usual. It asks you not to use more personal data than you need, so give the agent only the sources a question needs. If a cloud provider processes that text for you, put that in a data processing agreement, or let a local model do the work. Our AI safety checklist for business data covers the other arrangements.

Why should every answer point to its source?

Because internal knowledge is often contradictory or out of date. With the location and the date, you can judge which answer is right.

There may be three versions of the same procedure, or a pricing agreement sits in an email that was changed later. An agent that only gives an answer hides that problem. So always ask for the location, and have the agent report when two sources contradict each other.

For example, you ask what delivery time you agreed on with a customer. The agent gives the delivery time, the contract it comes from, and the date. It also notes that a later email mentions a different delivery time. You decide which one applies.

Checking stays human work. When the agent summarizes a contract, someone reads the flagged passages before anything is decided. You do not read everything again, just the passages that matter.

How do you start searching internal knowledge?

Start small, with one area of knowledge your team searches often today.

  • Pick one area, such as quotes, manuals, or customer agreements.

  • Put the sources together and give the agent read access to that place only.

  • Write down twenty real questions your colleagues ask, with the right answer next to each one.

  • Have the agent answer those questions, with the location for every answer.

  • Check the answers and note where the agent gets it wrong.

  • Only expand once that first set works reliably.

A test like this fits well in a pilot. Read how to prepare one in prepare your AI agent pilot. You will find other tasks that keep coming back in automating recurring tasks, and what an agent can do more broadly in Hermes Agent explained.

Voltti installs Hermes for businesses in Belgium and the Netherlands and helps set up the connections to your documents. You receive a custom quote, because sources and permissions differ for every business. Our page on AI automation explains how we work.

Portrait of Seppe Gadeyne

Seppe Gadeyne is a developer and the owner of Voltti. He sets up AI agents for companies in Belgium and the Netherlands.

Updated on

Frequently asked questions

01Can an AI agent read all our documents?

Only what you open up. You choose per source whether the agent gets read access, for example to one project folder or one shared drive. Start small and expand once the answers are right. Give write access only where the agent saves its results.

02What is the difference between an AI knowledge base and RAG?

RAG pulls loose chunks of text from an index for every question and answers with those. A knowledge base following the LLM Wiki pattern processes a source once into notes per topic and keeps them up to date. RAG works well for large archives, a maintained knowledge base for questions that keep coming back. You can combine them.

03Which sources can an AI agent search?

The agent reads text files and notes in a folder directly. Other sources, such as a mailbox, a document management system, or a CRM, need a connection, for example through MCP. Which connections already exist depends on the system. We look at that together at the start of a pilot.

04How do you know whether an answer is right?

Have the agent name the location with every answer: the document, the page or the email, and the date. That way you can check it yourself. Test in advance with questions you already know the answer to, and ask the agent to report when sources contradict each other.

05Do our documents stay inside the business?

The files stay where they are, and the agent reads them there. With a cloud model, the text needed for a question does go to the model provider. If you do not want that, a local model can do the work inside your own network. If your documents contain personal data, the GDPR applies to that as usual.

06What does an AI knowledge base cost for your business?

That depends on the number of sources, the connections, and the model you choose. That is why you receive a custom quote. Our article on what an AI agent costs lists the types of costs.

Discuss a knowledge base for your team

Discuss your pilot