Overview
A Knowledge Base is your secure, local repository of information. By creating one, you provide Logical with specific context, enabling it to deliver more relevant and accurate assistance tailored to your projects and personal data. When you attach a Knowledge Base to your current work, Logical uses its content to better understand your questions and generate personalized answers.Creating a Knowledge Base
Follow these steps to create a new Knowledge Base from your files.Open the Knowledge Base Manager

Click the cylinder icon to open the Knowledge Base manager.
Name Your Knowledge Base
Add Your Content
- Documents:
.pdf,.md,.txt - Code Files:
.swift,.js,.ts,.py,.java,.cpp,.c,.h - Web & Data:
.html,.css,.json,.xml - Images:
.png,.jpg,.jpeg,.tiff,.heic,.webp

Drag and drop supported files and folders to create a new Knowledge Base.
Process Your Files
Excluding Files and Folders
When you add a folder to a Knowledge Base, you can specify exclusion patterns to prevent certain files or subfolders from being included. This is useful for ignoring things likenode_modules, build artifacts, or git directories.
Logical uses glob patterns for exclusions.
- To exclude a specific folder name anywhere it appears, use the folder name (e.g.,
node_modules). - To exclude a specific file type, use a pattern like
*.log. - To exclude a directory at the root of the folder you’re adding, use a pattern like
build/.

Add glob patterns to exclude specific files or folders from your Knowledge Base.
Updating a Knowledge Base
You can easily add new information or remove outdated files from an existing Knowledge Base.Select a Knowledge Base to Edit
Manage Your Files
Save Your Changes
Attaching a Knowledge Base to Your Context
You can provide Logical with context from a Knowledge Base in two ways.1. Assign to a Named Task
For long-term projects, you can permanently associate a Knowledge Base with a Task (a saved group of application windows).Open the Task Editor

Create a new Task to group windows and context together.
Select a Knowledge Base

Associate a Knowledge Base with a Task using the dropdown menu.
Save the Task
2. Hot-Attach to Your Current Context
For quick, temporary needs, you can “hot-attach” a Knowledge Base directly to your current context.Open the Knowledge Base Selector

The book icon allows you to quickly attach a Knowledge Base.
Select and Attach

Select a Knowledge Base to attach it to your current context.