Insight AI

AI agents in business

What does it take to connect AI to company knowledge?

11 min read

01

Where do many companies stand with AI today?

In everyday use, but not yet connected to what the company knows.

AI AGENTPDFEmailsPresentationsUploadedfilesPDFs fromSharePointDatabasesTicket systemWikisBusiness appsProduct informationNON-PUBLIC INFORMATION SYSTEMS

In many companies, ChatGPT, Claude, Langdock or Copilot are part of the daily routine. Employees use them to write emails, prepare presentations, analyze uploaded files and summarize documents. Some, such as Copilot, are already connected to mailboxes, file shares and SharePoint. It saves time, and it works.

The knowledge that makes a company what it is, however, rarely sits in individual files. It lives in company documentation, product information, wikis, databases and business applications: systems that have been running for years and keep growing. You cannot upload this knowledge. There is too much of it, it changes every day, and it lives in systems, not in files. It stays out of the AI’s reach, and so does the difference between an AI that helps with individual tasks and one that knows your company.

02

How do you connect AI to internal systems?

There are two routes, depending on the form the knowledge takes. Text such as documentation, manuals and product information goes into a separate layer, the AI data layer, where it is prepared for search. Tables in databases stay where they are, and the AI queries exactly what it needs.

FIND PASSAGESPREPAREQUERYAI agentAI data layerManualsProduct informationInternal wikisTOOLDatabaseOrders · Inventory

Specialists call the two forms unstructured and structured data.

Text goes into the AI data layer, prepared so that an AI can search it precisely, either by vector search or as a knowledge graph. When someone asks a question, the AI agent searches this layer, not the original documents, and can cite the source in its answer.

Tables stay in their database. That means not individual Excel files, which you can upload like any other document, but what a company keeps in its databases: customers, orders, inventory, product data. None of it is copied into the AI data layer. The AI agent queries it through predefined tools, read-only and limited to the part it is meant to see.

In depthCan you do without an AI data layer?

With a handful of files, yes: an AI agent can also search text files directly. With the volume of documents a company holds, it needs something to orient itself, a kind of table of contents that tells it where to find what. That is the basic idea behind the knowledge graph in the next section. It, too, is a prepared layer that the AI agent searches, just without a database of its own.

03

Text: How does the AI find the right passage?

With text, the challenge is volume. The AI agent cannot read everything; it has to find the passages that match the question. There are two ways to do that. Vector search finds what is similar in meaning to the question; a knowledge graph finds what belongs together. The two can be combined.

Try it

Sample question

QuestionWhat delivery terms apply to Berger GmbH?

Closest match

Berger GmbH master agreement§ 3 · Delivery

“Delivery takes place within ten business days of receipt of order.”

Also sent to the AI agent

  1. Partial deliveries · Master agreement § 4
  2. Shipping costs · Price list 2026

The three closest passages go to the AI agent.

Missing: T&C § 7, transfer of risk. The master agreement refers to this clause for the transfer of risk. But it is worded very differently, so it sits far away.

Simplified: in reality, the space has hundreds to thousands of dimensions, not two. The sample content is made up.

Vector search has been the most widely used approach in recent years; the knowledge graph is gaining ground.

Vector search finds what is similar to the question

Vector search, often called semantic search, translates every passage of text into a series of numbers that represents its content. Passages with similar content get similar series of numbers. The same happens to every question. That makes it possible to calculate which passages come closest to the question in meaning, even when they use different words. Unlike a keyword search, vector search finds passages that mean the same thing. The best matches go to the AI agent as the basis for its answer.

This approach, finding the relevant passages first and then answering, is known as RAG (retrieval-augmented generation). Vector search is its most common form.

A knowledge graph finds what belongs together

A knowledge graph organizes knowledge differently. In this context, it is not a graph database but a collection of short articles that link to one another, with an index as the table of contents. Related content is linked rather than repeated, which avoids duplication. A person would find it tedious to keep jumping from article to article while reading. For an AI agent it is perfectly manageable: it starts at the index and follows the links until it has found the answer.

The articles do not write themselves. Someone has to create them from the sources, usually with the help of AI, and keep them up to date.

In depthWhere the approach comes from

Linked text files as a knowledge base for AI became known as an approach in their own right in 2026, prompted by AI researcher Andrej Karpathy under the name LLM Wiki. In June 2026, Google Cloud presented the Open Knowledge Format (OKF), an open specification for exactly this: text files with an index that link to one another. The specification is still new. The classic knowledge graph is more rigorously structured: it lives in a graph database and records the type of every relationship. Linked text files are the lighter option, and people can read and maintain them too.

Together they cover both

The strength of vector search is also its limit: it finds what resembles the question. But texts can be related without resembling each other. A contract refers to a clause, one section to another; the connection is there even if, at first glance, the two texts have nothing in common. A search based on similarity captures such references poorly. A knowledge graph records them explicitly.

The two approaches are not mutually exclusive. As a rule of thumb, a knowledge graph suits the manageable core that is actively maintained and has to be right: rules, definitions and documents that refer to one another. Vector search suits the large volume that no one can organize by hand. Which approach fits what is therefore the first question when building the AI data layer, and only your own documents and data can answer it.

In depthWhat happens behind the scenes

Before text is ready in the AI data layer, it goes through several steps: it is read from the sources, split into passages and, for vector search, translated into series of numbers. An automated process handles this, regularly picking up new and changed documents. It is known as a data pipeline, or ingestion; the result is a search index for the AI agent to search.

For exact terms such as item numbers or product codes, classic keyword search has the edge. That is why, in practice, it is often combined with vector search.

04

Tables: How does the AI access structured data?

Customer data, orders, inventory, product data: anything held in a database in rows and columns needs none of the preparation that text does. The AI agent works with it the way a data analyst would, through tools with predefined queries. Once built, the same tool can serve several AI agents.

Try it

Sample question

QuestionHow many open orders does customer 1042 have?

1 · The AI agent fills in the fields

Tool “Query orders”Parameters the AI agent passes in
Customer
Period
Status
Predefined queryWritten during setup. The AI agent neither sees nor changes it; it only fills in the fields.

2 · The tool queries the database

DatabaseExcerpt from the “Orders” table
No.CustomerDateStatus
A-3111042Oct 3open
A-3181042Oct 17delivered
A-3222210Oct 21open
A-3301042Nov 2open
A-3343005Nov 4open

The AI agent recognizes from the question which tool fits and passes it only the details.

3 · The AI agent answers…

Simplified: the sample data is made up. A tool can contain several predefined queries. The AI agent picks the tool and fills in the fields; the tool decides which query runs.

Where it differs from a data analyst is in how much freedom it gets. The AI agent could write its own database queries. It is more reliable to give it tools.

Each tool comes with a description of what it is for, and behind it sit one or more predefined queries. The AI agent recognizes from the question which tool fits and passes it only the details, known as parameters, such as a customer or a time period. The tool uses them to run the matching query. That keeps access under control and the results reliable.

Access stays read-only. If the query should not put load on the live system, or the AI agent should see only part of the data, it runs not directly against the database but against a copy or a restricted view.

In this context, you will often hear the term MCP. The Model Context Protocol is an open standard that gives AI agents a uniform way to connect to tools and data sources. A tool connected this way can be used by different AI agents; it does not have to be rebuilt for each one.

In depthWhat the AI agent knows about the database

So that the AI agent can make sense of the data a tool returns, it has the tool’s description and, where needed, the database schema. The schema describes how the database is structured: which tables exist, which fields they have and how they relate. The AI agent only sees the data itself when it asks for it through a tool.

The AI searches prepared text, by similarity or by following links, and queries databases where they are, through predefined tools. From here on, the technology matters less than your own documents and data.

05

How does the AI stay up to date?

For text, through updates at set times, in many cases overnight: whatever is added or changed during the day, the AI agent knows the next morning. It queries databases at the moment a question comes in and gets the data as it stands right then.

AI data layer

Overnight update

Whatever is added or changed during the day, the AI agent knows the next morning.

Original database

Query on demand

With every question, the AI agent reads the current data straight from the database.

Nobody maintains the AI data layer by hand. At set times, an automated run picks up whatever has changed in the sources since the last run, such as new documents, revised manuals or updated product information, and prepares it as described in the section on text. In many cases it runs at night. Updating the moment something changes is technically possible, but considerably more complex, and usually not necessary: a manual revised today rarely needs to reach the AI agent the same day.

With tables, the question hardly arises. If the AI agent queries the database directly, a record changed a minute ago is already in the answer. If the query runs against a copy, the answer is as current as the copy. That fits with what changes where: inventory, orders and prices change constantly and live in databases; documentation changes more slowly and lives in text.

The tools need to stay current too. When the database gets a new field or a new data source is added, the tool has to be adjusted, just like any report that draws on the same database. Otherwise the AI agent will not know about the addition.

06

Where does the planning start?

With three questions to answer before anything is built. Which use cases, meaning tasks for the AI, come first, and what knowledge do they need? Where will it all run: with a cloud provider or in-house? And from those two follows the third: what drives the cost?

Try it

Which use case comes first?

Knowledge neededTextOnboardingTextInternal policiesTextIntranetPermissionssame for everyone

Illustrative placement. Effort for the use case itself, excluding platform and operation. Value and effort depend on the company.

The starting point is not the source but the task the AI is meant to help with. Customer service looks for answers to customer questions, sales wants to know where an order stands, new employees are getting up to speed. Only the use case tells you what knowledge is needed and how to connect it: text through the AI data layer, databases through a tool, often both. So the question to settle is where the benefit is greatest and how much effort that takes.

A natural place to start is a use case that serves everyone: a central knowledge base for what every employee needs to know, such as onboarding, internal policies and the knowledge on the intranet. It needs no rules about who may see what, and it helps many people right away. Use cases that concern only certain employees come later, depending on their permissions.

Where it runs determines who operates it and where the data is stored, which is why it should be settled early. In-house, with open-source or commercial software on your own or rented servers, you handle setup and operation yourself, with your own IT team or a partner; in return, everything stays under your control. With a major cloud provider such as Microsoft, Google or AWS, the building blocks are available off the shelf, and the provider runs the infrastructure. There, too, you can choose data centers in Germany or Europe, and GDPR-compliant operation is possible.

The cost depends on both. Every use case brings its own sources, and every source takes work, depending on the route: text has to be prepared, tools have to be built for databases. Then there is operation: in-house as a share of your IT effort, with a cloud provider as ongoing fees. Only once both are settled can anyone put a number on it.

07

How much work is involved?

Usually one to three months to a first usable connection, depending on complexity. The technology is well established; the time goes into working on your own documents and data. Start small, and build so that more can be added later.

Starting point

What you haveDocuments and databases built up over years
  • Manual_final.docx5 versions
  • Onboarding
  • Intranet
  • Price lists 2019–2025
  • Project folders
  • Network drive “Old”
  • ERP database
  • CRM

1 to 3 months

Working on what you haveWhere the time goes
  1. 01Choose the first use case
  2. 02Select its sources
  3. 03Tidy up: which version is current?
  4. 04Pick a route for each source: prepare or tool
  5. 05Define the queries for the tools

Technology · standard components

Vector searchPreparationTool connection

off the shelf or open source

Result

First usable connectionOne use case, a few sources
Manual, current versionOnboardingIntranet
AI agentEmployees use it

Then: expand

+ Use cases+ Sources+ Users

The building blocks are standard today: a database for vector search, a process that prepares documents, a tool connected to a database. Cloud providers offer them, and for running things in-house there are ready-made open-source packages. The one to three months go into working on your own documents and data: which use case comes first, which sources it needs, which route suits each source, which queries a tool should run against your database. Often this includes some tidying up: if there are five versions of a manual in the file share, it has to be clear beforehand which one is current.

A common mistake is starting too big: every use case at once, every department, permissions included from day one. With one first use case and a few sources, you get something employees can work with sooner, and it shows whether the chosen route holds up. From there you expand, one use case at a time. For that to work, even the first step should be more than an experiment: a prototype backed by a plan that already allows for more use cases, more sources and more users.

08

What happens once it is up and running?

It keeps going. What you build here is not a project with an end date but a part of the company that grows with it.

New use cases and sources come in, tools get adjusted, the AI systems keep evolving. If you plan for this from the start, as an ongoing responsibility in-house or with a partner, you build on what you have, step by step.

The first step can be worked out before anyone talks about technology: which use case comes first, which two or three sources it needs and which version of each is current, and who in the company owns it. Those answers are where the path begins: from an AI that helps with individual tasks to an AI that knows your company.

Implementation

Connect company knowledge to your AI agents

Planning to bring more of your company knowledge into your AI agents and looking for help with implementation? That is exactly what I offer: building the AI data layer for your text, tools for your databases, and running it all.

Thomas Weller

Founder & managing director, Insight AI

30 minutes, no obligation: we’ll talk about your systems and how to connect your company knowledge.
thomas.weller@insightai.co