Skip to content

MindweaveTech/seva-ai

Repository files navigation

Smart AI - AI-Powered Elderly Care Companion

An empathetic AI companion system designed specifically for elderly care, featuring nurse-like persona, memory retention, health monitoring, and voice-first interface.

License Status Progress


πŸŽ‰ What's Working Now (Phase 1 Complete!)

  • βœ… User Authentication - Register, login, logout with JWT tokens
  • βœ… AI Chat - Conversation with Claude 3.5 Sonnet (nurse persona)
  • βœ… Mobile App - Complete UI with login, chat, and session management
  • βœ… Conversation History - View and manage past conversations
  • βœ… Auto Token Refresh - Seamless authentication experience
  • βœ… Test User - Ready-to-use test account (see TEST_USER.md)
  • βœ… API Documentation - Interactive Swagger UI at /docs
  • βœ… Database - PostgreSQL with 12 tables initialized

Try it now: Clone the repo, start Docker services, run the backend, and launch the mobile app!


Overview

Smart AI provides elderly individuals with a compassionate, intelligent companion that enhances their quality of life through:

  • πŸ—£οΈ Voice-First Interface - Natural conversation via speech
  • 🧠 Memory Retention - Remembers past conversations and context
  • πŸ’Š Health Monitoring - Tracks health signals from conversations
  • πŸ‘¨β€βš•οΈ Caregiver Integration - Alerts and insights for family/caregivers
  • πŸ“± Offline-First - Works without constant internet connection
  • πŸ”’ HIPAA Compliant - Enterprise-grade security and privacy

Project Structure

seva-ai/
β”œβ”€β”€ docs/                       # Comprehensive documentation
β”œβ”€β”€ database/                   # Database schemas and migrations
β”œβ”€β”€ backend/                    # FastAPI backend service
β”œβ”€β”€ mobile-app/                 # React Native mobile application
β”œβ”€β”€ admin-dashboard/            # Caregiver web dashboard
β”œβ”€β”€ shared/                     # Shared code and types
β”œβ”€β”€ infrastructure/             # DevOps and deployment configs
β”œβ”€β”€ .github/workflows/          # CI/CD pipelines
β”œβ”€β”€ PLAN.md                     # Project roadmap
└── TASKS.md                    # Task breakdown

Service Overview

Directory Description Tech Stack Status
docs/ Architecture, API docs, guides Markdown βœ… Complete
database/ PostgreSQL & Weaviate schemas SQL, Python βœ… Schema Complete
backend/ API service, Claude AI integration FastAPI, Python 3.11+ βœ… Phase 1 Complete
mobile-app/ iOS/Android app for elderly users React Native, Expo, TypeScript βœ… Phase 1 Complete
admin-dashboard/ Caregiver monitoring portal React, Vite, Tailwind CSS 🚧 Scaffold Ready
infrastructure/ Docker Compose, CI/CD Docker, GitHub Actions βœ… Dev Environment Ready

Quick Start

Prerequisites

  • Node.js 18+ (for mobile app and dashboard)
  • Python 3.11+ (for backend)
  • Docker & Docker Compose (for local development)
  • PostgreSQL 15+ (or use Docker)
  • Weaviate (or use Docker)

Local Development Setup

  1. Clone the repository

    git clone https://github.com/MindweaveTech/seva-ai.git
    cd seva-ai
  2. Start infrastructure services

    docker-compose -f infrastructure/docker/docker-compose.dev.yml up -d
    # Starts PostgreSQL, Weaviate, Redis, Adminer
  3. Setup backend

    cd backend
    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
    pip install -r requirements.txt
    cp .env.example .env
    # Add your ANTHROPIC_API_KEY to .env
    
    # Database is already initialized!
    # Or run: alembic upgrade head
    
    uvicorn app.main:app --reload
    # Backend runs at http://localhost:8000
    # API docs at http://localhost:8000/docs
  4. Setup mobile app

    cd mobile-app
    npm install
    # Backend URL is pre-configured for localhost
    npm start  # Start Expo
    # Press 'i' for iOS or 'a' for Android
  5. Login with test user

    Email:    test@smartai.com
    Password: TestPass123!
    

    See TEST_USER.md for details.

  6. Setup admin dashboard

    cd admin-dashboard
    npm install
    cp .env.example .env
    npm run dev  # Start dev server

Documentation

Core Documentation

Project Management

Service-Specific Docs


Technology Stack

Mobile Application

  • React Native with Expo ~49.0 - Cross-platform mobile development
  • TypeScript 5.1+ (strict mode) - Type safety
  • Zustand 4.4+ - Lightweight state management
  • React Navigation 6.1+ - Stack navigation
  • Axios 1.6+ - HTTP client with interceptors
  • AsyncStorage - Persistent token storage

Backend Service

  • FastAPI - Modern async Python web framework
  • SQLAlchemy 2.0+ - ORM with async support
  • Pydantic v2 - Data validation and settings
  • Alembic - Database migrations
  • Anthropic Python SDK - Claude API integration
  • Uvicorn - ASGI server

Databases

  • PostgreSQL 15+ - Primary relational database (12 tables)
  • Weaviate 1.22.4 - Vector database for RAG (Phase 2)
  • Redis 7 - Caching and sessions (optional)

AI/ML Services

  • Claude 3.5 Sonnet (2024-10-22) - Latest Anthropic conversational AI
  • OpenAI Embeddings - Text embeddings (Phase 2)
  • Expo AV - Audio recording/playback (Phase 3)

Infrastructure

  • Kubernetes - Container orchestration
  • Docker - Containerization
  • GitHub Actions - CI/CD
  • Prometheus & Grafana - Monitoring

Key Features

For Elderly Users

  • πŸŽ™οΈ Voice Conversation - Speak naturally, get voice responses
  • πŸ’­ Memory - AI remembers your health history and preferences
  • πŸ₯ Health Tracking - Gentle monitoring through conversation
  • πŸ“΅ Offline Mode - Works without internet connection
  • πŸŒ™ Daily Check-ins - Regular wellness conversations
  • 🚨 Emergency Support - Quick access to caregivers

For Caregivers

  • πŸ“Š Health Dashboard - Monitor patient wellness
  • πŸ”” Smart Alerts - Get notified of concerning patterns
  • πŸ“ˆ Health Trends - Visualize health metrics over time
  • πŸ’¬ Conversation Summaries - Review key discussion points
  • πŸ‘₯ Multi-Patient Management - Monitor multiple elderly users
  • πŸ“± Mobile & Web Access - Check in from anywhere

Development Roadmap

Phase 0: Foundation (Weeks 1-2) - βœ… Complete

  • Project setup and architecture
  • Development environment (Docker Compose)
  • Database initialization (12 tables)
  • CI/CD pipelines (GitHub Actions)
  • Backend/Mobile/Dashboard scaffolding

Phase 1: Authentication & Chat (Weeks 3-4) - βœ… Complete

  • JWT authentication (access + refresh tokens)
  • User registration and login
  • Claude 3.5 Sonnet integration
  • Chat API with conversation history
  • Mobile UI (Login, Register, Chat, Sessions)
  • Navigation and state management
  • Auto token refresh
  • Test user created

Phase 2: Memory System & RAG (Weeks 5-6) - πŸ“ Planned

  • Weaviate vector database integration
  • Conversation embeddings
  • Semantic search
  • Long-term memory retrieval

Phase 3: Voice Integration (Weeks 7-8) - πŸ“ Planned

  • Speech-to-text
  • Text-to-speech
  • Audio recording
  • Voice commands

Phase 4: Offline Support (Weeks 9-10) - πŸ“ Planned

  • WatermelonDB integration
  • Sync engine
  • Offline message queue
  • Conflict resolution

Phase 5: Health Monitoring (Weeks 11-12) - πŸ“ Planned

  • Health metrics tracking
  • Sentiment analysis
  • Pattern detection
  • Caregiver alerts

Phase 6: Admin Dashboard (Weeks 13-15) - πŸ“ Planned

  • Dashboard UI implementation
  • User management
  • Health monitoring visualization
  • Analytics and reporting

Phase 7-10: Security, Testing, Production (Weeks 16-20) - πŸ“ Planned

  • Comprehensive testing
  • Security hardening
  • HIPAA compliance audit
  • Production deployment

See PLAN.md for detailed roadmap.


Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Standards

  • Backend: Python 3.11+, Black formatting, 90%+ test coverage
  • Frontend: TypeScript strict mode, ESLint, 85%+ test coverage
  • Commits: Conventional Commits format
  • PRs: Require 1+ approval, all tests passing

Team

Core Team

  • Backend Engineers - API development, database, RAG pipeline
  • Mobile Engineers - React Native app, offline sync
  • Frontend Engineer - Admin dashboard
  • ML Engineer - RAG optimization, health analytics
  • DevOps Engineer - Infrastructure, CI/CD, monitoring
  • QA Engineer - Testing, quality assurance

See PLAN.md for detailed team structure.


License

This project is licensed under the MIT License - see the LICENSE file for details.


Security

Security is paramount when handling health data. We follow industry best practices:

  • πŸ” Encryption at rest (AES-256)
  • πŸ”’ Encryption in transit (TLS 1.3)
  • 🎫 JWT authentication with refresh tokens
  • πŸ“ Audit logging for all sensitive operations
  • πŸ›‘οΈ HIPAA compliance framework
  • πŸ” Regular security audits

Report security vulnerabilities: security@mindweavetech.com (or use GitHub Security Advisories)


Support


Acknowledgments

  • Anthropic - Claude API for empathetic AI conversations
  • OpenAI - Embedding models for semantic search
  • Google Cloud - Speech services
  • React Native Community - Mobile framework and ecosystem
  • FastAPI Community - Modern Python web framework

Status

Current Phase: Phase 0 - Foundation & Architecture βœ… Next Milestone: Development environment setup Timeline: 20-week MVP development Last Updated: 2025-10-20


Built with ❀️ by MindweaveTech
Making elderly care more compassionate through AI

About

Smart AI - AI-powered elderly care companion system with nurse-like persona, memory retention, and health monitoring capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors