Module · at the center of the platform
XTM One
How-to guide

Give agents your documents with knowledge bases

Create a knowledge base, fill it with files or keep it in sync with a source, check what agents will find, lock it as ground truth, and bind it to agents.

XTM OneEnterprise EditionFor AI agent builders and CTI analysts

A knowledge base is a collection of your documents that XTM One splits into passages and indexes, so the AI agents bound to it search it while they answer. An agent with your incident response policy quotes the policy instead of guessing what a hotel chain usually does. This page creates a knowledge base, fills it, checks what a search finds, and binds it to an agent. How knowledge bases fit with the other blocks is in What agents are made of.

CONTENTKNOWLEDGE BASEAGENTSFiles and textUpload Files, Paste TextImport sourcesWebsite, GitHub, Notion, drivesKnowledge baseOriginal documents keptSearch indexChunks and embeddingsBound agentsSearch only by default
  1. Files and text → Knowledge base: added
  2. Import sources → Knowledge base: synced on schedule
  3. Knowledge base → Search index: embedded
  4. Bound agents → Search index: searches passages
  5. Bound agents → Knowledge base: writes back if allowed
Documents go into a knowledge base, are split and indexed, and the agents bound to it search them while they answer

Before you start

  • Knowledge bases are an AI area: AI is switched on and the platform runs the Enterprise Edition. Automatic import sources also need an OpenCTI or OpenAEV in Enterprise Edition registered with XTM One.
  • Any user can create a private knowledge base. Only an administrator can create a Company-managed knowledge base, open to every user and editable by administrators only.
  • Search the list first: a collection that already exists can be shared with you instead of copied.

Create it and add documents

  1. Open Agent Studio, then Knowledge and click New Knowledge Base.
  2. Fill Name, Tags and Description (optional). Agents and colleagues pick the knowledge base by its name and description, so say what it holds.
  3. As an administrator, turn on Company-managed knowledge base when every user's agents should reach it.
  4. Click Create Knowledge Base. Its page opens.
  5. Open Documents and click Upload Files, then drop the files or click to browse. PDF, Word, Excel, Markdown, JSON, CSV and code files are accepted. To add a text you have at hand, click Paste Text, fill the filename and the content, and click Add Document.
  6. Wait until the documents are indexed: Overview shows how many are ready and how many are still processing. A document that failed can be sent again with Reprocess.
XTM One 1.261119.1

To follow the documents of every knowledge base you can see at once, click View Documents on the list of knowledge bases. Each row gives the document, its knowledge base, its status and when it was added, and opens the documents of its knowledge base. Search by file or knowledge base name, filter with Status, and sort by any of these columns: the total then says how many of all your documents match. Hover an Error badge to read why the document failed, and click Retry embedding to send it again. View Docs on a warning under the list of knowledge bases opens this view on the knowledge bases concerned.

XTM One keeps each document whole, not only its passages: downloading it returns the file you added, and an agent that needs the full text reads the original. Keep very large documents out of a knowledge base agents should read whole. Above about 200,000 characters, a document is never loaded whole into an agent's context: the agent is steered to search it for passages instead. Splitting it into meaningful documents works better.

From a Word document, XTM One indexes the body with its tables, headers and footers, and the text of its content controls, text boxes and fields. The pictures it holds are not read.

Only the text layer of a PDF is indexed by default: what a diagram, a chart, a screenshot or a scanned page shows is never found by a search. To index it too, open Configuration, click Edit, turn on Describe PDF figures, and click Save changes before you upload the PDFs: the switch applies to PDFs uploaded from then on, so a PDF already there is described only if you upload it again. The platform's vision model reads each page that carries a figure or has no text layer, and its description is indexed next to the page's text. Each such page costs one model call, up to 30 pages per document. On Documents, the PDF shows Figures pending until its pages are read, then how many pages had their figures described. Figures partly described and Figures not described say why when you hover them, for example when no model was available to read the pages.

Keep it in sync with a source

On Import Sources, click Configure Source, pick the source type, fill its fields, choose the Sync Schedule (Manual only, Every 6 hours, Every 12 hours, Daily or Weekly), and click Add Source. Sync now starts a sync at once, and each source shows when it last synced and how many documents it brought.

SourceWhat it importsNeeds
WebsiteThe pages of a public site, from a Starting URL, within Max pages and Max depth.Nothing
GitHub Repository (Public)Code and documentation of a public repository, a branch, a subfolder.Nothing
GitHub RepositoryThe same, from a private repository.A connected GitHub integration
NotionA page, a database, or the result of a search, with sub-pages if you want.A connected Notion integration
OneDrive / SharePoint, Google DriveThe files of a folder.A connected Microsoft or Google integration
Drata PoliciesYour compliance policies, in the Policy statuses you list (ACTIVE when you list none).A connected Drata integration

A source that needs an integration stays visible but disabled until one is connected. You can only choose an integration you can see; the source then syncs with it on every run, whoever starts it. When a sync fails, the people who can manage the knowledge base see the full error, which may name internal hosts; everyone else sees a short description.

A Word file synced from OneDrive, SharePoint or Google Drive is checked after its text is read. When far less text came out than the file holds, or almost none from a large file such as a scan, its document is flagged. Agents that list or read it are warned that its text may be incomplete and that they should open the original file.

A source that keeps failing is quarantined: XTM One stops syncing it after several consecutive errors or hangs, or when the folder or page it reads is no longer found. The owner of the knowledge base gets a notification that names it, and so does every administrator when the knowledge base is company-managed. Activity records the event as Sync quarantined. Fix the source's settings, then click Force Re-sync.

Check what agents will find

Click Test Search in the page header, type a question the way an agent's user would ask it, and click Search. The results are the passages a bound agent receives, sorted by relevance with their match percentage. If the passage you expect is missing, check Documents before blaming the agent: the file may be absent, failed, or an old version. Test Search stays disabled until the knowledge base has indexed content.

Lock it as ground truth

On Configuration, click Edit, turn on Read-only content, and click Save changes. Do it when the collection is the authoritative version of something, such as a policy other work is checked against. It stays fully searchable, but no agent can write to it, whatever its configuration grants, its documents cannot be added, changed or deleted, and the knowledge base cannot be deleted until you turn the switch off. Its import sources keep refreshing it, and Re-embed still works: disable the sources too to freeze it completely. The lock lives on the knowledge base, so it holds whatever an agent is given later.

Index HTML as rendered text (off by default) indexes HTML documents as the text a reader sees instead of their markup. Turn it on for exported pages whose markup outweighs their text, then click Re-embed to apply it to the documents already there.

Bind it to an agent

In the agent wizard, pick it in Knowledge bases to search. On an existing agent, open Configuration > Knowledge, click Edit in Knowledge Bases, pick it, and Save. Each bound knowledge base reads Read-only (search only): turn on its switch to let the agent store documents in it too. Tell the agent in its persona when to search it. See Create an agent.

A company-managed agent accepts only company-managed knowledge bases. Sharing a knowledge base with people and groups, at Read only or Can configure, works as for every resource: see Share agents and resources.

ExampleThe security policies the Velvet Harbor watcher quotes

Sophie Laurent creates the knowledge base the Velvet Harbor watcher and the Crisis briefer agents search:

FieldValue
NameGrand Meridian security policies
Tagspolicy, incident-response
Description (optional)Grand Meridian Hotels' incident response policy and crisis communication playbook: escalation rules, roles, who speaks to guests and press.
DocumentsIncident response policy.pdf, Crisis communication playbook.pdf, uploaded with Upload Files
Read-only contentOn: the policies change only through Hélène Marchetti, the CISO
SharingCTI team, SOC and Crisis cell, Read only

In Test Search, she asks When must a guest data breach be escalated to the crisis cell?: the first passage is the escalation section of the incident response policy. She binds the knowledge base to Velvet Harbor watcher, which now quotes that section when a new Velvet Harbor report names a Grand Meridian hotel.

Read the page

TabWhat it is for
OverviewHow much is indexed, the recent documents, the embedding model, the agents bound to it. Start here.
DocumentsThe files themselves: add, download, delete, reprocess, and whether the figures of a PDF were described.
Import SourcesThe sources kept in sync, their schedule and last status. Not shown for a system-managed knowledge base.
ConfigurationName, description, tags, the read-only and indexing switches, sharing, owner.
ActivityEvery sync, document and embedding event, with its source and how many documents it concerned. Check it when answers change.

Activity shows one event per row: When, Event, Details, Source and Documents. Search it, filter it by Event type (Syncs, Documents, Embeddings, several at once), sort it by time, and export it. When a search or a filter narrows the list, its total says how many of all the events it keeps.

The badges explain missing actions: System managed means the platform fills it, from an assignment's runs; Content locked (Locked on the list) means Read-only content is on; Company-managed with Read-only means you may read it but not administer it.

A workset keeps its items in a knowledge base of its own, which no list shows, not even to administrators. An old link or an activity entry that leads to one opens Internal storage of a workset, which names the workset. Click View the workset to find it on the Worksets tab of Work, then Operations, described in Find a run. You get this screen only for a workset you can read: yours, a company-managed one, or any as an administrator. Otherwise the knowledge base is not found.

What's next

NextLet agents act on a computer with XTM One Desktop
XTM One
The AI layer at the center of the XTM platform: agents that work across OpenCTI, OpenAEV and OpenCRQ.

Published

Overview