Skip to main content
A Knowledge Base is a collection of your content — documents, plain text, and websites — that your agents search when answering questions. Instead of relying on generic LLM knowledge, agents retrieve from your Knowledge Base and answer with information that’s accurate, brand-aligned, and up to date. Knowledge Bases are reusable. Multiple agents and templates can attach to the same one, so you keep information consistent across all your agents from one place.

How retrieval works

TruGen supports two retrieval modes that control when and how the agent queries your Knowledge Base.
For most use cases, Agentic RAG produces better results — the agent retrieves only when it’s genuinely needed, which reduces noise and improves response quality.

Supported content types

Documents

Upload PDF or DOCX files. Content is extracted, chunked, and indexed automatically. Best for policies, manuals, product documentation, and structured reports.

Plain Text

Paste raw text directly. Best for FAQs, scripted responses, quick reference content, or anything you want to control precisely without a file upload.

URL & Website

Provide a URL to scrape a single page, or crawl an entire site. Best for public documentation, help centres, and product pages.
Full format and size limits: see Adding Content.

The three-step lifecycle

Every Knowledge Base moves through three phases:
1

Create

Set the name, description, and (optionally) initial content. See Creating a Knowledge Base.
2

Add content

Upload documents, paste text, or point at URLs. TruGen extracts, cleans, chunks, and indexes each piece automatically. See Adding Content.
3

Attach to agents

Reference the Knowledge Base by ID from one or more agents (or a template). Agents pick up changes on the next session. See Attaching to Agents.

Next steps

Creating a Knowledge Base

Create your first KB in the Studio or via the API.

Adding Content

Supported formats, size limits, and how content is processed.