Added support for configurable conversation history limits through bot configuration. The bot now reads 'prompt-history' from config (defaulting to -1 for unlimited) and trims the conversation history accordingly before generating prompts. Updated announcements bot template to use history limit of 2 messages instead of the previous compact setting.
4.5 KiB
4.5 KiB
BotServer Version 6.0.1 to 6.0.5 Executive Report
Executive Summary
This report outlines the key database schema and architectural changes introduced between versions 6.0.1 and 6.0.5 of BotServer platform. The changes represent a major evolution in configuration management, knowledge base handling, and automation capabilities.
Version-by-Version Changes
Version 6.0.1
- Key Change: Introduced bot memory system
- Details:
- Created
bot_memoriestable with key-value storage - Added indexes for efficient memory lookups
- Supports persistent bot state management
- Created
Version 6.0.2
- Key Change: Knowledge Base and Tools Management
- Details:
- Added
kb_documentstable for document metadata - Created
kb_collectionsfor organizing documents - Introduced
basic_toolstable for compiled BASIC tools - Added comprehensive indexing for performance
- Implemented automatic timestamp updates via triggers
- Added
Version 6.0.3
- Key Change: User KB associations and session tools
- Details:
- Added
user_kb_associationsto track active KBs per user - Created
session_tool_associationsfor session-specific tools - Improved personalization and session context management
- Added
Version 6.0.4
- Key Change: Comprehensive Configuration Management
- Details:
- Replaced .env files with database-backed configuration
- Added multi-tenancy support with
tenantstable - Created tables for server, tenant, and bot configurations
- Added model configuration management
- Implemented connection management system
- Introduced component installation system
- Enhanced configuration security with encryption support
Version 6.0.5
- Key Change: Automation Improvements
- Details:
- Enhanced system_automations table with name and bot_id
- Added unique constraints for data integrity
- Fixed clicks table primary key structure
- Improved scheduled automation handling
Git Commit History (6.0.1 to 6.0.5)
Change Statistics
- Files Changed: 85
- Lines Added: 11,457
- Lines Removed: 3,385
- Key Areas Modified:
- Documentation (+2,176 lines across 5 new files)
- Package Manager (major refactoring with facade/installer additions)
- Knowledge Base System (new embeddings, minio, qdrant modules)
- Basic Tools Compiler (+433 lines)
- Tool Keywords System (+1,200 lines across multiple files)
- Configuration System (+344 lines)
- Web Automation (+231 lines)
c5953808- Support legacy bootstrap and update installer248ad08e- Add new KB and session association tablesde5b651b- Refactor config loading and DB URL parsing30b02658- Add include_dir dependency for embedded migrations93dab6f7- Update PostgreSQL installer commandsed93f70f- Remove tables install from bootstrapf8d4e892- Add progress bars and enhance bootstrapfa0fa390- Add await to bootstrap start_all call2af3e3a4- Add method to start all components6f305175- Tables installation improvements88ca2143- Add package manager CLI and component systemaa69c63c- Refactor bootstrap and package managere1f91113- Update password generatord970d48a- Postgres to version 1888a52f17- New bootstrap engined9e0f1f2- Knowledge management systema77e0d6a- Enhanced knowledge management logic27d03499- Bot package refactoringbe1e2575- Initial bot package refactor
Architectural Impact
-
Configuration Management:
- Centralized all configuration in database
- Added encryption support for sensitive data
- Enabled multi-environment management
-
Knowledge Base & Tools:
- Created comprehensive document management system
- Added collection-level organization
- Improved search capabilities via indexing
- Introduced tool management system with compilation support
- Added KB embedding and vector search capabilities
-
Automation:
- Enhanced scheduling capabilities
- Improved data integrity with constraints
- Better bot-specific automation handling
- Added container management scripts
-
Code Evolution:
- Expanded package management functionality
- Added web automation capabilities
- Enhanced basic tool keywords system
- Improved documentation and examples
Recommended Actions
- Review configuration migration for existing deployments
- Audit knowledge base document indexing
- Verify automation schedules after upgrade
- Test multi-tenancy features if applicable
- Review new tool management system implementation
- Evaluate container deployment scripts
- Test web automation capabilities