Skip to main content
Every Knowledge Base starts with a name and a description. Both fields matter more than most people expect: the agent reads them to decide whether to search this KB for a given user question. A vague name or an empty description means the LLM never picks the KB, no matter how good the content is.

In the Studio

1

Open Knowledge Base

Go to app.trugen.ai and click Knowledge Base in the left panel under Configure.
2

Create a new Knowledge Base

Click Create New. Give it a clear Name and a specific Description.
3

Add your content

You can add content at creation time or later. See Adding Content for supported formats.
4

Save

Click Save & Create. Content is queued for indexing. Once processing completes, the KB is ready to attach to agents.

Via API

Create a Knowledge Base with a name and description:
The response returns a Knowledge Base id — save it. You’ll use it to add documents and attach the KB to agents.
Requests use multipart/form-data (not JSON) because the same endpoint accepts optional file uploads at creation time. Total request size is capped at 100 MB.
Full endpoint reference: Create Knowledge Base.

Naming and describing well

The Name and Description drive retrieval routing. Write them the way you’d write a prompt for a colleague deciding which folder to open.

Good

Bad

Both are too vague. The LLM has no signal to pick this KB over another.

Organization strategy

You’ll almost always get better results with multiple focused Knowledge Bases than one large mixed one. Practical splits that work well:
  • Product-Docs + Pricing + Support-FAQs (SaaS)
  • HR-Policies + IT-Support + Facilities (internal ops)
  • API-Reference + Getting-Started + Troubleshooting (developer tools)

Managing your Knowledge Bases

  • List all KBs: GET /v1/ext/kbs
  • Get a specific KB: GET /v1/ext/kb/{kbId} (returns metadata plus attached documents)
  • Update name/description: PUT /v1/ext/kb/{kbId}
  • Delete a KB: DELETE /v1/ext/kb/{kbId}
See the full Knowledge Base API Reference.

Next steps

Adding Content

Upload documents, add plain text, or scrape URLs.

Attaching to Agents

Wire your KB to one or many agents.