Knowledge Bases
A knowledge base lets an agent ground its answers in your own documents. Xagent ingests, chunks, embeds, and indexes content so agents can retrieve the most relevant passages at runtime — retrieval-augmented generation (RAG).
How It Works
- Ingest — upload files or point at a cloud source. PDFs and other documents are parsed and split into chunks.
- Embed — each chunk is embedded and stored in a vector store.
- Retrieve — at query time the agent searches for the chunks most relevant to the task.
- Ground — retrieved passages are fed to the model, with citations back to the source.
Ingesting Documents
Add content from local uploads or a cloud bucket:
POST /api/kb/ingest # ingest uploaded documents
POST /api/kb/ingest-cloud # ingest from a cloud sourceIngestion returns a result per document so you can track which succeeded and which need attention.
Evidence-Based RAG
The built-in evidence-based-rag skill makes agents cite the passages they relied on, so answers stay traceable to the source material. Attach it to an agent alongside one or more knowledge bases.
Grounding agents
Attach a knowledge base to an agent in its configuration (knowledge_bases). The agent will automatically retrieve from it during planning and execution.
Managing Knowledge Bases
Knowledge bases support search, updates, and deletion of documents through the /api/kb endpoints. Content is scoped to your team.
Next Steps
Personal and Team Knowledge Bases
A knowledge base starts out personal — only you can see and use it. You can promote it to your team so everyone can build agents on the same material. If you're on a team, you can also choose team ownership right in the creation dialog, before any files are uploaded — the name is claimed for the team immediately, so nobody else can take it while you're still adding content.
| Action | Who can do it |
|---|---|
| Create a new knowledge base as team-owned | Any team member |
| Promote a personal knowledge base to the team | Any team member |
| Add to or edit a team knowledge base | Any team member |
| Demote it back to personal, or delete it | Team admins only |
| Cancel a team claim before any content was added | The member who created the claim (or a team admin, via demote) |
Promoting moves the content into team-owned storage, so a shared knowledge base keeps working even after the person who created it leaves the team.
Things that block a change
You cannot demote or delete a team knowledge base while a team agent still uses it — remove it from that agent first. A knowledge base that is mid-upload is also briefly busy, and a name already claimed or promoted by a different team cannot be taken again until it is released.
Storage Limits
Team knowledge base storage is capped by your plan and measured as a live total across everything your team has uploaded — not a monthly allowance that resets. When the team reaches its cap, further uploads are refused with a message asking you to upgrade. Freeing space by deleting files restores capacity immediately.
Next Steps
- Uploading Knowledge → — add documents and web content
- Knowledge Retrieval → — search and tune results
- Building Agents →
- Tools & Skills →