Overview
Use knowledge bases to let agents search and reference external, read-only data sources, such as documents, repositories, and other systems. Each knowledge base is indexed independently, and you must explicitly assign it to agents.When to use a knowledge base
Use a knowledge base when you want agents to:- Search large or shared document collections
- Reference organizational or team knowledge
- Access documentation or source code that changes infrequently
- Keep reference data out of the local codebase
- Frequently changing or transactional data
- Binary assets like images, videos, or executables
- Data that requires write access
- Actions, tool invocation, or API calls (use an MCP server instead)
Source types
Each knowledge base connects to a single external data source and is indexed independently. Poolside supports the following knowledge base source types:- Git repositories, with optional file filtering
- Amazon S3–compatible object storage, with optional prefix filtering
Supported content and limits
Supported content
- Text-based files that standard MIME type detection recognizes as plain text
- Source code, configuration files, and documentation
Unsupported content
- Binary files, such as images, videos, or executables
- Symbolic links
- Files that cannot be interpreted as text
Size limits
- Maximum file size is 2 MB per file
Access and security
Role-based permissions and agent configuration determine who can access a knowledge base and how agents can use it.Role-based permissions
Role permissions determine whether a user can create, use, or manage knowledge bases. A user must have theUse Knowledge Bases permission to allow an agent to search and retrieve content from a knowledge base. For a complete list of permissions, see Permissions reference.
Agent access
Agents require explicit access to each knowledge base.- Enable each knowledge base for the agents that need it
- Agents get read-only access
- The agent has that knowledge base enabled, and
- The user running the agent has permission to use that knowledge base
How agents use knowledge bases
When you enable a knowledge base for an agent, the agent can:- Search indexed content for relevant information
- Retrieve relevant documents or excerpts
- Use retrieved content to answer questions or help with coding tasks
Create a knowledge base
Prerequisites- You have the
Create Knowledge Basespermission. - You have the connection details for the data source you want to add, such as a Git repository URL or an S3 bucket path.
-
In the Poolside Console, navigate to Tools >
Knowledge Bases.
- Click New Knowledge Base.
- Enter a Name.
- Optional: Enter a Description.
- For Type, select Git Repository or Amazon S3.
-
Configure the source based on the selected type.
- Git Repository
- Amazon S3
If you selected Git Repository, provide the following:- Repository URL: The HTTPS Git URL of the repository.
-
Branch: The branch to index. Defaults to
main. - Username: Required for private repositories.
- Password / Token: A Git password or personal access token.
-
File patterns (optional): Glob patterns to control which files to index, one pattern per line. Leave empty to include all files.
Examples:
docs/****/*.pysrc/{lib,utils}/**
- Click Create Knowledge Base.
- Assign the knowledge base to one or more agents. Knowledge bases are not available to agents by default. For more information, see Agents.
- Verify indexing status before relying on it in agent workflows.
- Test retrieval by invoking an agent that has access to the knowledge base.
- Refine scope by adjusting file patterns or prefixes if needed.
Delete a knowledge base
Deleting a knowledge base removes it from all agents that reference it. Agents configured to use the deleted knowledge base can no longer retrieve external content from it. If one or more agents currently use a knowledge base, Poolside may prompt you to confirm the deletion. Steps- In the Poolside Console, navigate to Tools >
Knowledge Bases.
- Select the knowledge base you want to delete.
- Click Delete.