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: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.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
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}
Next steps
Adding Content
Upload documents, add plain text, or scrape URLs.
Attaching to Agents
Wire your KB to one or many agents.