botserver/docs/src/chapter-03
2025-11-22 13:24:53 -03:00
..
caching.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00
context-compaction.md Revise documentation in Chapter 01 to improve clarity and structure, including updates to the installation instructions and session management overview. 2025-10-25 15:59:06 -03:00
indexing.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00
kb-and-tools.md - New security features and compliance checklist. 2025-11-22 13:24:53 -03:00
qdrant.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00
README.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00
semantic-cache.md - New security features and compliance checklist. 2025-11-22 13:24:53 -03:00
semantic-search.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00
summary.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00
vector-collections.md - New stuff, 6.1. 2025-11-21 23:23:53 -03:00

gbkb Reference

The knowledgebase package provides three main commands:

  • USE_KB Loads and embeds files from the .gbkb/collection-name folder 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 injects them into LLM prompts automatically, providing context-aware responses.