generalbots/src/llm
Rodrigo Rodriguez (Pragmatismo) 1f150228af Add billion-scale database redesign with enums and sharding
Database Schema v7.0.0:
- Create new 'gb' schema with PostgreSQL ENUMs instead of VARCHAR for all domain values
- Add sharding infrastructure (shard_config, tenant_shard_map tables)
- Implement partitioned tables for sessions, messages, and analytics (monthly partitions)
- Add Snowflake-like ID generation for distributed systems
- Design for billion-user scale with proper indexing strategies

Rust Enums:
- Add comprehensive enum types in core/shared/enums.rs
- Implement ToSql/FromSql for Diesel ORM integration
- Include: ChannelType, MessageRole, MessageType, LlmProvider, ContextProvider
- Include: TaskStatus, TaskPriority, ExecutionMode, RiskLevel, ApprovalStatus, IntentType
- All enums stored as SMALLINT for efficiency

Other fixes:
- Fix hardcoded gpt-4 model in auto_task modules to use bot config
- Add vector_db to required bootstrap components
- Add Qdrant health check before KB indexing
- Change verbose START messages to trace level
- Fix episodic memory role handling in Claude client
- Disable auth for /api routes during development

This is a DESTRUCTIVE migration - only for fresh installations.
2025-12-29 11:27:13 -03:00
..
context Add SQLx dependencies for calendar feature 2025-11-27 23:10:43 -03:00
llm_models feat(security): Complete security infrastructure implementation 2025-12-28 19:29:18 -03:00
prompt_manager - Refactor folder as features. 2025-11-22 22:55:35 -03:00
cache.rs feat(security): Complete security infrastructure implementation 2025-12-28 19:29:18 -03:00
cache_test.rs Update server components and keywords 2025-12-23 15:52:35 -03:00
claude.rs Add billion-scale database redesign with enums and sharding 2025-12-29 11:27:13 -03:00
episodic_memory.rs feat(security): Complete security infrastructure implementation 2025-12-28 19:29:18 -03:00
local.rs feat(security): Complete security infrastructure implementation 2025-12-28 19:29:18 -03:00
mod.rs Fix organizations foreign key reference (org_id not id) 2025-12-29 08:07:42 -03:00
observability.rs Fix clippy warnings: match arms, async/await, Debug impls, formatting 2025-12-26 08:59:25 -03:00