1.7 KiB
1.7 KiB
gbkb Reference
The knowledge‑base package provides three main commands:
- USE KB – Loads and embeds files from the
.gbkb/collection-namefolder into the vector database, making them available for semantic search in the current session. Multiple KBs can be active simultaneously. - CLEAR KB – Removes a knowledge base from the current session (files remain embedded in the vector database).
- ADD WEBSITE – Crawl a website and add its pages to a collection.
Example:
' Add support docs KB - files from work/botname/botname.gbkb/support_docs/ are embedded
USE KB "support_docs"
' Add multiple KBs to the same session
USE KB "policies"
USE KB "procedures"
' Remove a specific KB from session
CLEAR KB "policies"
' Remove all KBs from session
CLEAR KB
The vector database retrieves relevant chunks/excerpts from active KBs and makes them available to the system AI automatically, providing context-aware responses during conversations.
See Also
- KB and Tools System - Complete reference for knowledge bases and tools
- Vector Collections - How vector search works
- Document Indexing - Automatic document processing
- Semantic Search - Meaning-based retrieval
- Context Compaction - Managing conversation context
- Caching - Performance optimization
- Chapter 2: Packages - Understanding bot components
- Chapter 5: BASIC Keywords - Complete command reference
- Chapter 7: Configuration - Bot configuration options
- Chapter 9: Knowledge Base - Advanced KB patterns