botserver/docs/src/chapter-07/README.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

## gbot Reference
`config.csv` defines the bots behaviour and parameters.
```csv
# config.csv Bot configuration
bot_name,GeneralBot
language,en
theme,default.gbtheme
knowledge_base,default.gbkb
max_context_tokens,2048
```
### Key Columns
- **bot_name** Display name of the bot.
- **language** Locale for formatting (used by `FORMAT`).
- **theme** UI theme package (`.gbtheme`).
- **knowledge_base** Default knowledgebase package (`.gbkb`).
- **max_context_tokens** Maximum number of tokens retained in the session context.
2025-11-23 13:46:55 -03:00
- **max_context_tokens** Limit for the amount of context sent to the LLM.
### Editing the Configuration
The file is a simple CSV; each line is `key,value`. Comments start with `#`. After editing, restart the server to apply changes.
### Runtime Effects
- Changing **theme** updates the UI served from `web/static/`.
- Modifying **knowledge_base** switches the vector collection used for semantic search.
- Adjusting **answer_mode** influences the order of tool invocation and LLM calls.
For advanced configuration, see `src/bot/config.rs` which parses this file into the `BotConfig` struct.