Throughout the Akapulu platform and docs, the terms corpus and knowledge base are used interchangeably.
Overview of knowledge bases
A knowledge base contains:- a knowledge base (container)
- one or more documents (your uploaded files)
Create a knowledge base
- Go to akapulu.com/knowledge-bases.
- Click New Knowledge Base.
- Enter:
name- optional
description
- Open the new knowledge base and click Add Document +.
- set:
- document
name - optional document
description
- document
- Upload a file
Attach a knowledge base to a scenario
Attach via JSON
Attach the knowledge base in your scenario by adding a function withtype: "rag" and the target corpus_id:
The function name and description are presented to the LLM as tool metadata, so use clear action-oriented wording.
Attach via UI
Use the scenario builder when you want to attach a knowledge base without editing JSON:- Open your scenario and go to the target node.
- Click Add function.
- In the modal, open the RAG Tool tab.
- Select your knowledge base by name.
- Enter a semantically meaningful function name and description.
Shown at 1.5x speed.
When this function is included in a node:
- the model can invoke it like any other tool
- Akapulu queries the specified knowledge base
- relevant context is returned to the LLM to use in its response

