Friendzone Lite - AI Memory Capture System#
Overview#
Friendzone Lite is an AI-powered memory capture and organization system that helps you extract, refine, and structure memories from images through intelligent conversation. It transforms images into structured, searchable memories through natural language interaction.
Features#
Image-Based Memory Extraction#
- Upload images via URL to start memory capture sessions
- AI analyzes visual content to understand the context
- Extracts initial memory details from image content
Interactive Memory Refinement#
- Conversational interface to gather missing details
- AI asks targeted follow-up questions
- Progressive refinement of memory information
Structured Memory Organization#
- When: Date information (YYYY-MM-DD format)
- Who: People involved in the memory
- Where: Locations relevant to the memory
- What: Description of what the memory is about
Completion Tracking#
- Real-time progress indication
- Summary generation when details are complete
- Clear completion status with final memory summary
Architecture#
Core Components#
- Memory Processing Function:
update_memory_details()
- AI-powered memory extraction and refinement - Session Node: Maintains persistent memory state across interactions
- Update Walker: Handles user interactions and memory updates
obj Response {
has follow_up_questions: str; # Next question to ask
has summary: str; # Concise memory summary
has when: str; # Date in YYYY-MM-DD format
has who: List[str]; # Names of people involved
has what: str; # What the memory is about
has where: List[str]; # Relevant locations
has terminate_conversation: bool; # Completion flag
has show_summary: bool; # Display summary flag
}
Complete Code Preview#
Here's what you'll build - an AI memory capture system in just two files:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
|
Usage#
-
Install dependencies:
-
Start the Jac Cloud server:
-
Run the frontend:
Usage Workflow#
Step 1: Image Upload#
- Provide an image URL of a photo containing a memory you want to capture
- The system supports various image formats (JPEG, PNG, WebP)
- Images can be from social media, cloud storage, or any accessible web location
Step 2: Initial Analysis#
The AI will: - Analyze the visual content of your image - Identify key elements like people, places, and activities - Generate an initial memory framework - Ask the first targeted question to gather more details
Step 3: Conversational Refinement#
Engage in a natural conversation where the AI will: - Ask specific questions about missing details - Focus on one aspect at a time (when, who, where, what) - Build upon your previous answers - Gradually complete the memory profile
Step 4: Memory Completion#
When sufficient details are gathered: - The AI will indicate the conversation is complete - A comprehensive summary will be generated - All memory details will be structured and stored
Example Memory Capture Session#
Initial Image Analysis#
User uploads: Beach vacation photo with friends
AI Initial Response: "I can see this appears to be a beach scene with several people. To help me capture this memory completely, when was this photo taken?"
Conversational Flow#
User: "This was taken last summer, around July 2024"
AI: "Great! I can see there are several people in the photo. Can you tell me who these people are?"
User: "That's me with my college friends Sarah and Mike"
AI: "Wonderful! Where was this beach vacation? Which beach or location was this at?"
User: "This was at Santa Monica Beach in California"
AI: "Perfect! What was the occasion or what were you doing during this beach visit?"
User: "We were celebrating Sarah's birthday with a beach day trip"
Final Summary#
Generated Memory:
- When: 2024-07-15
- Who: User, Sarah, Mike
- Where: Santa Monica Beach, California
- What: Beach day celebration for Sarah's birthday
Advanced Features#
Memory Categories#
The system automatically categorizes memories: - Social Events: Gatherings, parties, celebrations - Travel Experiences: Vacations, trips, explorations - Personal Milestones: Achievements, life events - Daily Moments: Casual interactions, routine activities
Context Enhancement#
- Emotional Context: Captures feelings and atmosphere
- Environmental Details: Weather, time of day, setting
- Activity Recognition: Identifies specific actions and events
- Relationship Mapping: Understands social connections
Quality Assurance#
- Consistency Checking: Validates logical coherence of memory details
- Completeness Assessment: Ensures all key aspects are captured
- Accuracy Verification: Cross-references visual and textual information
Looking for the full version? This is a lite version for learning purposes. Check out the full-scale FriendZone project for a complete implementation with advanced features.
Technical Implementation#
Visual Analysis Pipeline#
- Image Processing: Loads and preprocesses uploaded images
- Object Detection: Identifies people, objects, and scenes
- Scene Understanding: Analyzes context and activities
- Initial Memory Extraction: Creates preliminary memory structure
Conversational AI System#
- Question Generation: Creates contextually relevant follow-up questions
- Response Processing: Analyzes and incorporates user answers
- Progress Tracking: Monitors completion of memory aspects
- Dialogue Management: Maintains conversation flow and coherence
Memory Storage Format#
{
"memory_id": "unique_identifier",
"created_at": "timestamp",
"image_url": "source_image_url",
"details": {
"when": "2024-07-15",
"who": ["User", "Sarah", "Mike"],
"where": ["Santa Monica Beach", "California"],
"what": "Beach day celebration for Sarah's birthday"
},
"summary": "Comprehensive memory description",
"conversation_log": ["question_response_pairs"]
}
Customization Options#
Question Templates#
Modify questioning strategies for different memory types:
- Event-focused: Emphasizes activities and occasions
- People-centered: Prioritizes social connections and relationships
- Location-based: Focuses on geographical and environmental details
- Time-sensitive: Emphasizes chronological and temporal aspects
Analysis Depth#
Configure the level of detail for memory capture:
- Quick Capture: Basic who, what, when, where
- Detailed Analysis: Extended context and emotional elements
- Comprehensive Profiling: Full environmental and social mapping
Integration Possibilities#
- Photo Libraries: Connect with Google Photos, iCloud, or other services
- Social Media: Import memories from Facebook, Instagram, or Twitter
- Calendar Integration: Link memories with calendar events and dates
- Search Functionality: Build searchable memory databases
Use Cases and Applications#
Personal Memory Keeping#
- Family Archives: Document family events and milestones
- Travel Journals: Capture vacation and trip memories
- Life Documentation: Record personal achievements and experiences
- Social Memories: Preserve moments with friends and loved ones
Professional Applications#
- Event Documentation: Corporate events and team building activities
- Project Milestones: Capture important project moments
- Training Records: Document learning experiences and workshops
- Client Interactions: Preserve significant business relationships
Therapeutic and Wellness#
- Memory Therapy: Support for individuals with memory challenges
- Mindfulness Practice: Intentional memory capture and reflection
- Gratitude Journaling: Focus on positive experiences and emotions
- Life Review: Systematic documentation of life experiences
Troubleshooting#
Common Issues#
Image Loading Problems: - Verify image URL accessibility and format support - Check internet connection and firewall settings - Ensure image file size is within reasonable limits
Conversation Flow Issues: - Provide clear, specific answers to AI questions - If stuck, try rephrasing or providing additional context - Restart the session if conversation becomes inconsistent
Memory Quality Concerns: - Be specific and detailed in your responses - Correct any misunderstandings immediately - Use follow-up sessions to refine captured memories
Friendzone Lite showcases the potential of combining visual AI with conversational intelligence to create meaningful, structured memory systems that preserve and organize life's important moments.