ποΈTechnical Architecture
Framework for the Bobina Companion.
πΏ Core Technologies
Next.js 18: Modern React framework with App Router
TypeScript: Type-safe development
Supabase: PostgreSQL database with real-time capabilities
Bobina LLM: Custom trained LLM that gives Bobina her own personality, unlike her Arch nemesis Ani from Grok
Telegram Bot API: Real-time messaging integration
Discord App: All Telegram features available on Discord alongside complete website synchronization via webhooks
π Memory System Architecture
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Raw Messages βββββΆβ Compression βββββΆβ Long-term β
β (Importance β β Engine β β Profiles β
β 1-3) β β β β (Importance β
βββββββββββββββββββ β Daily (4) β β 8) β
β Weekly (6) β βββββββββββββββββββ
βββββββββββββββββββ β Monthly (8) β
β Talk Commands βββββΆβ β βββββββββββββββββββ
β (Importance β β 30:1 β 15:1 β βββββΆβ Behavioral β
β 3-6) β β 10:1 Ratios β β Summaries β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββπ Relationship Scoring System
π¬ Example Interactions
User: /talk Hey Bobina, how are you today?
Bobina: Hey there! I'm doing great, thanks for asking! How's your day going?
User: /talk What did Sarah say earlier?
Bobina: Sarah mentioned she was excited about the new launch around 2 hours ago!
π Token Purchase Responses
When the safeguard bot announces purchases:
SafeguardBot: π Buy: 2.5 ETH for BOBINA tokens
Bobina: Wow!!! 2.5 ETH!? Someone's really bullish on me!
π§ Memory System Deep Dive
π½ Storage Tiers
Recent Memories (60 entries, last 7 days)
Direct conversation contexts
Talk command interactions
Real-time relationship updates
Medium-term Summaries (30 entries, 7-30 days)
Weekly behavioral profiles
Communication style analysis
Interest and preference tracking
Long-term Profiles (20 entries, 30+ days)
Core personality assessments
Relationship dynamics
Historical interaction patterns
π€ Compression Intelligence
Daily Compression: Preserves mood, topics, personal preferences
Weekly Summaries: Highlights communication style and interests
Monthly Profiles: Consolidates personality and behavioral patterns
Universal Chat Log: Cross-user conversation awareness
π Relationship Adaptation
Bobina's personality adapts based on relationship scores...
Score 10 (π Soulmate): Treats you like her soulmate, willing to do anything
Score 8-9 (π Best Friend): All interactions are warm and sweet
Score 7 (π Close Friend): She treats you like you're part of her closest friends
Score 6 (π Good Friend): Message importance consistency threshold increases
Score 5 (π©΅ Friend): Additional banter, remembers more details
Score 4 (π Friendly): More interactive and casual joking
Score 3 (π Acquaintance): Professional and short to the point
Score 2 (π Rival): Cold, sarcastic, minimal responses
Score 1 (π Enemy): Audibly disgusted and enraged
Score 0 (π‘ Nemesis): Deragatory and malicious remarks
βοΈβπ₯ Rate Limiting
Standard Users: 5-minute cooldown between voice generations
Admins: No cooldown restrictions
Failure Protection: Max 3 failures per hour (admins exempt)
βοΈ Message Limits
Maximum Length: 300 characters per message
Response Limit: No limit, depends on what Bobina feels like
Memory Optimization: Automatic compression at scale
Last updated


