Knowledge Base Setup¶
Setup and manage your knowledge base.
Creating a Knowledge Base¶
Option 1: Local KB (via bot)¶
Recommended: create and initialize a local KB directly from Telegram using the command:
This will create a new KB under the bot's KB root and initialize Git.
Alternatively, you can prepare one manually:
Configure in config.yaml
:
Option 2: GitHub KB¶
- Create repo on GitHub
- Clone locally
- Configure path or simply use the Telegram command:
Alternatively, configure the path manually:
KB_PATH: ./my-kb
KB_GIT_ENABLED: true
KB_GIT_AUTO_PUSH: true
KB_GIT_REMOTE: origin
KB_GIT_BRANCH: main
KB Structure¶
knowledge_base/
├── topics/ # Categorized notes
│ ├── ai/
│ ├── biology/
│ ├── physics/
│ └── tech/
├── attachments/ # Media files
└── index.md # KB index
Git Integration¶
Enable Git operations:
Every note is automatically: - Added to Git - Committed with message - Pushed to remote (if enabled)