Page cover

πŸ—οΈ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

  1. Recent Memories (60 entries, last 7 days)

    • Direct conversation contexts

    • Talk command interactions

    • Real-time relationship updates

  2. Medium-term Summaries (30 entries, 7-30 days)

    • Weekly behavioral profiles

    • Communication style analysis

    • Interest and preference tracking

  3. 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