2:I[7012,["4765","static/chunks/4765-f5afdf8061f456f3.js","9856","static/chunks/9856-3b185291364d9bef.js","6687","static/chunks/app/docs/%5B...slug%5D/page-e07536548216bee4.js"],"MarkdownRenderer"] 4:I[9856,["4765","static/chunks/4765-f5afdf8061f456f3.js","9856","static/chunks/9856-3b185291364d9bef.js","6687","static/chunks/app/docs/%5B...slug%5D/page-e07536548216bee4.js"],""] 5:I[4126,[],""] 7:I[9630,[],""] 8:I[4278,["9856","static/chunks/9856-3b185291364d9bef.js","8172","static/chunks/8172-b3a2d6fe4ae10d40.js","3185","static/chunks/app/layout-2814fa5d15b84fe4.js"],"HeadingProvider"] 9:I[1476,["9856","static/chunks/9856-3b185291364d9bef.js","8172","static/chunks/8172-b3a2d6fe4ae10d40.js","3185","static/chunks/app/layout-2814fa5d15b84fe4.js"],"Header"] a:I[3167,["9856","static/chunks/9856-3b185291364d9bef.js","8172","static/chunks/8172-b3a2d6fe4ae10d40.js","3185","static/chunks/app/layout-2814fa5d15b84fe4.js"],"Sidebar"] b:I[7409,["9856","static/chunks/9856-3b185291364d9bef.js","8172","static/chunks/8172-b3a2d6fe4ae10d40.js","3185","static/chunks/app/layout-2814fa5d15b84fe4.js"],"PageFrame"] 3:T6c54, # πŸš€ VoiceAssist V2 - Start Here **Welcome to VoiceAssist V2** - A HIPAA-compliant voice-enabled clinical decision support system. This document is your entry point to the project. Choose your path below based on your role and experience level. **Status update:** All 16 project phases (0-15) are complete. Backend, infrastructure, admin panel, and web app (through Phase 3.5) are production-ready. **Voice Mode Enhancement (10-phase plan) completed 2025-12-03** - includes emotion detection, medical dictation, session analytics, and feedback collection. See [Implementation Status](overview/IMPLEMENTATION_STATUS.md) for the authoritative component status. --- ## 🎯 Quick Start ### For New Developers 1. Read [What is VoiceAssist V2?](#what-is-voiceassist-v2) (5 min) 2. Follow [Getting Started](#getting-started) (30 min) 3. Review [Documentation Map](#documentation-map) to understand what's available 4. Start with [PHASE_00_INITIALIZATION.md](phases/PHASE_00_INITIALIZATION.md) ### For Experienced Developers 1. Review **[UNIFIED_ARCHITECTURE.md](UNIFIED_ARCHITECTURE.md)** for complete system design 2. Check [ARCHITECTURE_DIAGRAMS.md](architecture/ARCHITECTURE_DIAGRAMS.md) for visual diagrams 3. Set up local environment: [LOCAL_DEVELOPMENT.md](LOCAL_DEVELOPMENT.md) 4. Jump to [Development Roadmap](#development-roadmap) to see phases ### For Clinicians 1. Read [WEB_APP_SPECS.md](WEB_APP_SPECS.md) to understand clinical workflows 2. Review [User Settings](WEB_APP_SPECS.md#user-settings--preferences) you'll be able to configure 3. Understand [HIPAA protections](SECURITY_COMPLIANCE.md) built into the system ### For Security Reviewers 1. Start with [SECURITY_COMPLIANCE.md](SECURITY_COMPLIANCE.md) 2. Review [PHI Detection & Routing](SEMANTIC_SEARCH_DESIGN.md#phi-detection--routing) 3. Check [Audit Logging](ADMIN_PANEL_SPECS.md#audit-logs-audit) requirements ### For System Administrators 1. Read [ADMIN_PANEL_SPECS.md](ADMIN_PANEL_SPECS.md) for admin interface 2. Review [System Settings](ADMIN_PANEL_SPECS.md#system-settings-interface) you'll configure 3. Follow [INFRASTRUCTURE_SETUP.md](INFRASTRUCTURE_SETUP.md) for deployment ### Choosing API References - Use [API_REFERENCE.md](API_REFERENCE.md) for a high-level overview of endpoint groups, concepts, and quick lookups. - Use [api-reference/rest-api.md](api-reference/rest-api.md) for endpoint-by-endpoint request/response details and examples. - See [../services/api-gateway/README.md](../services/api-gateway/README.md) for the canonical backend service guide. --- ## πŸ“– What is VoiceAssist V2? VoiceAssist V2 is a **HIPAA-compliant voice-enabled clinical decision support system** designed for healthcare providers. It enables doctors to ask clinical questions using voice input and receive evidence-based answers with citations from authoritative medical sources. ### Key Features - 🎀 **Voice-First Interface**: Push-to-talk and voice-activated modes - πŸ”’ **HIPAA Compliant**: PHI detection, audit logging, encrypted storage - πŸ“š **Evidence-Based**: Searches UpToDate, PubMed, guidelines, and local knowledge base - πŸ€– **Hybrid AI**: Local Llama for PHI queries, cloud models for general clinical questions - πŸ“‹ **Clinical Workflows**: Quick Consult, Case Workspace, Differential Diagnosis, Drug Reference - πŸ“Š **Admin Panel**: Knowledge base management, user administration, analytics - πŸ” **Secure Architecture**: Separate Nextcloud stack for PHI document storage ### Architecture Overview ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ VoiceAssist V2 Stack β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Web App (Vite/React) Admin Panel (Vite/React) β”‚ β”‚ ↓ ↓ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ FastAPI Backend (Python) β”‚ β”‚ β”‚ β”‚ - RAG Engine - Auth - PHI Detection β”‚ β”‚ β”‚ β”‚ - AI Router - Search - Audit Logs β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ ↓ ↓ ↓ β”‚ β”‚ PostgreSQL Qdrant Vector Redis Cache β”‚ β”‚ (Users/Logs) (Embeddings) (Sessions) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ↕ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Separate Nextcloud Stack (PHI Docs) β”‚ β”‚ - Document Storage - WebDAV API - Encryption at Rest β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## πŸ“š Documentation Map All documentation is in the `docs/` directory. Here's the complete index: ### 🎯 Overview & Planning | Document | Purpose | Audience | | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ---------------------------------- | | **[START_HERE.md](START_HERE.md)** ⭐ | This file - project orientation | Everyone | | **[UNIFIED_ARCHITECTURE.md](UNIFIED_ARCHITECTURE.md)** ⭐ | **Canonical architecture reference** | **Developers, Architects, DevOps** | | **[architecture/ARCHITECTURE_DIAGRAMS.md](architecture/ARCHITECTURE_DIAGRAMS.md)** ⭐ **NEW** | **Visual architecture diagrams (Mermaid)** | **Developers, Architects** | | **[ARCHITECTURE_V2.md](ARCHITECTURE_V2.md)** | System architecture, Docker Compose-first approach (reference) | Developers, DevOps | | **[PROJECT_SUMMARY.md](PROJECT_SUMMARY.md)** | High-level overview, tech stack, cost estimates | Stakeholders, PMs | | **[ROADMAP.md](ROADMAP.md)** | Product roadmap and feature timeline | Product, Management | | **[ENHANCEMENT_SUMMARY.md](ENHANCEMENT_SUMMARY.md)** | Summary of documentation enhancements | Contributors | ### πŸ› οΈ Getting Started | Document | Purpose | Audience | | -------------------------------------------------------------- | ----------------------------------- | ---------- | | **[LOCAL_DEVELOPMENT.md](LOCAL_DEVELOPMENT.md)** ⭐ | Complete local dev setup guide | Developers | | **[INFRASTRUCTURE_SETUP.md](INFRASTRUCTURE_SETUP.md)** | Production server deployment | DevOps | | **[COMPOSE_TO_K8S_MIGRATION.md](COMPOSE_TO_K8S_MIGRATION.md)** | Migration guide from Compose to K8s | DevOps | ### πŸ–₯️ Frontend Specifications | Document | Purpose | Audience | | -------------------------------------------------------------- | ----------------------------------------------- | --------------------- | | **[WEB_APP_SPECS.md](WEB_APP_SPECS.md)** ⭐ | Doctor-facing web app specs, clinical workflows | Frontend devs, UX | | **[ADMIN_PANEL_SPECS.md](ADMIN_PANEL_SPECS.md)** ⭐ | Admin panel specs, system management | Frontend devs, Admins | | **[DOCUMENTATION_SITE_SPECS.md](DOCUMENTATION_SITE_SPECS.md)** | User-facing docs site specs | Technical writers | ### πŸ”§ Backend & Services | Document | Purpose | Audience | | -------------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------- | | **[SERVICE_CATALOG.md](SERVICE_CATALOG.md)** ⭐ | Complete catalog of all 10 microservices | All developers, DevOps | | **[SEMANTIC_SEARCH_DESIGN.md](SEMANTIC_SEARCH_DESIGN.md)** ⭐ | Knowledge base, vector search, RAG pipeline | Backend devs, ML | | **[api-reference/rest-api.md](api-reference/rest-api.md)** | Endpoint-by-endpoint REST reference | Backend devs | | **[API_REFERENCE.md](API_REFERENCE.md)** | High-level API overview and endpoint groups | Backend devs, stakeholders | | **[../services/api-gateway/README.md](../services/api-gateway/README.md)** | Canonical API Gateway service guide | Backend devs | | **[server/README.md](../server/README.md)** | ⚠️ **DEPRECATED** - Legacy backend (use api-gateway) | Reference only | | **[apps/web-app/README.md](../apps/web-app/README.md)** | Web app implementation details | Frontend devs | | **[apps/admin-panel/README.md](../apps/admin-panel/README.md)** | Admin panel implementation details | Frontend devs | | **[apps/docs-site/README.md](../apps/docs-site/README.md)** | Documentation site implementation | Frontend devs | **Shared packages:** [../packages/api-client/README.md](../packages/api-client/README.md), [../packages/config/README.md](../packages/config/README.md), [../packages/design-tokens/README.md](../packages/design-tokens/README.md), [../packages/telemetry/README.md](../packages/telemetry/README.md), [../packages/types/README.md](../packages/types/README.md), [../packages/ui/README.md](../packages/ui/README.md), [../packages/utils/README.md](../packages/utils/README.md) ### πŸ”’ Security & Compliance | Document | Purpose | Audience | | -------------------------------------------------------- | ------------------------------------------ | -------------------- | | **[SECURITY_COMPLIANCE.md](SECURITY_COMPLIANCE.md)** ⭐ | HIPAA compliance, PHI handling, audit logs | Security, Compliance | | **[NEXTCLOUD_INTEGRATION.md](NEXTCLOUD_INTEGRATION.md)** | Separate Nextcloud stack for PHI docs | DevOps, Security | ### πŸš€ Infrastructure & Deployment | Document | Purpose | Audience | | -------------------------------------------------------------- | ------------------------------------------ | -------- | | **[INFRASTRUCTURE_SETUP.md](INFRASTRUCTURE_SETUP.md)** | Ubuntu server setup, production deployment | DevOps | | **[COMPOSE_TO_K8S_MIGRATION.md](COMPOSE_TO_K8S_MIGRATION.md)** | Kubernetes migration guide | DevOps | ### 🎀 Voice Features | Document | Purpose | Audience | | ------------------------------------------------------------------------------- | --------------------------------------------------------------- | --------------------- | | **[VOICE_MODE_PIPELINE.md](VOICE_MODE_PIPELINE.md)** ⭐ | Core voice pipeline architecture, WebSocket protocol | Backend/Frontend devs | | **[VOICE_MODE_ENHANCEMENT_10_PHASE.md](VOICE_MODE_ENHANCEMENT_10_PHASE.md)** ⭐ | **10-phase enhancement: emotion, dictation, memory, analytics** | All developers | | **[VOICE_MODE_SETTINGS_GUIDE.md](VOICE_MODE_SETTINGS_GUIDE.md)** | User voice settings configuration | Frontend devs | | **[frontend/thinker-talker-hooks.md](frontend/thinker-talker-hooks.md)** | Thinker-Talker React hooks | Frontend devs | | **[api-reference/voice-pipeline-ws.md](api-reference/voice-pipeline-ws.md)** | Voice pipeline WebSocket API reference | Backend/Frontend devs | ### πŸ€– For AI Assistants / Automation > **Quick Links for AI Agents:** > > - [Agent Onboarding](ai/AGENT_ONBOARDING.md) - Start here > - [Implementation Status](overview/IMPLEMENTATION_STATUS.md) - Component status (source of truth) > - [Agent API Reference](ai/AGENT_API_REFERENCE.md) - Machine-readable endpoints > - [Agent Task Index](ai/AGENT_TASK_INDEX.md) - Common tasks and relevant docs | Document | Purpose | Audience | | ---------------------------------------------------------- | -------------------------------------------------------- | -------------------------- | | **[Agent Onboarding](ai/AGENT_ONBOARDING.md)** ⭐ | Quick start guide for AI coding assistants | Claude Code, AI assistants | | **[Agent API Reference](ai/AGENT_API_REFERENCE.md)** ⭐ | Machine-readable JSON endpoints for agents | Claude Code, AI assistants | | **[Agent Task Index](ai/AGENT_TASK_INDEX.md)** | Common AI agent tasks and relevant documentation | Claude Code, AI assistants | | **[CLAUDE_EXECUTION_GUIDE.md](CLAUDE_EXECUTION_GUIDE.md)** | Session startup, branching, safety rules, quality checks | Claude Code, AI assistants | | **[CLAUDE_PROMPTS.md](CLAUDE_PROMPTS.md)** | Ready-to-use prompts for common development tasks | Claude Code, AI assistants | **Machine-Readable Endpoints (web):** - `GET /agent/index.json` - Documentation system metadata - `GET /agent/docs.json` - Full document list with filtering - `GET /search-index.json` - Full-text search index (Fuse.js format) ### πŸ“‹ Phase Documents (Development Plan) All phases are in `docs/phases/`. The project has 16 phases (0-15): | Phase | Name | Status | Focus | File | | ------------ | --------------------- | -------- | ----------------------------------------- | ------------------------------------------------------------------ | | **Phase 0** | Initialization | Complete | Read all specs, understand architecture | [PHASE_00_INITIALIZATION.md](phases/PHASE_00_INITIALIZATION.md) ⭐ | | **Phase 1** | Local Environment | Complete | Docker Compose, PostgreSQL, Redis, Qdrant | PHASE*01*\*.md | | **Phase 2** | Database Schema | Complete | SQLAlchemy models, Alembic migrations | PHASE*02*\*.md | | **Phase 3** | Authentication | Complete | JWT, user management, RBAC | PHASE*03*\*.md | | **Phase 4** | Document Ingestion | Complete | PDF/DOCX parsing, vector embeddings | PHASE*04*\*.md | | **Phase 5** | Semantic Search | Complete | Qdrant integration, RAG pipeline | PHASE*05*\*.md | | **Phase 6** | PHI Detection | Complete | Presidio integration, routing logic | PHASE*06*\*.md | | **Phase 7** | AI Router | Complete | Llama local, OpenAI cloud, cost tracking | PHASE*07*\*.md | | **Phase 8** | External Search | Complete | PubMed, UpToDate APIs | PHASE*08*\*.md | | **Phase 9** | Nextcloud Integration | Complete | WebDAV, PHI document storage | PHASE*09*\*.md | | **Phase 10** | WebSocket & Voice | Complete | Real-time chat, voice transcription | PHASE*10*\*.md | | **Phase 11** | Security & HIPAA | Complete | Security hardening, compliance | PHASE*11*\*.md | | **Phase 12** | HA/DR | Complete | High availability, disaster recovery | PHASE*12*\*.md | | **Phase 13** | Testing & Docs | Complete | Pytest, Prometheus, documentation | PHASE*13*\*.md | | **Phase 14** | Production Deployment | Complete | Ubuntu server, systemd, backups | PHASE*14*\*.md | | **Phase 15** | Final Review | Complete | Final review, handoff, validation | PHASE*15*\*.md | **Note**: Web App frontend development follows a separate milestone plan (Phases 0-8) tracked in [Implementation Status](overview/IMPLEMENTATION_STATUS.md). --- ## πŸ—ΊοΈ Development Roadmap ### Project Phases (0-15) - Complete βœ… All 16 project phases have been completed: - βœ… **Phases 0-3**: Foundation (environment, database, auth) - βœ… **Phases 4-8**: Core functionality (ingestion, search, AI) - βœ… **Phases 9-10**: Integration (Nextcloud, voice backend) - βœ… **Phases 11-12**: Security, HA/DR - βœ… **Phases 13-15**: Testing, deployment, final review **Deliverable**: Production-ready backend and infrastructure ### Web App Frontend Milestones - Phase 3.5 Complete βœ… The web app follows its own milestone plan: - βœ… **Phase 0**: Foundation (monorepo, shared packages) - βœ… **Phase 1**: Auth & Layout - βœ… **Phase 2**: Chat Interface - βœ… **Phase 3**: Voice Features - βœ… **Phase 3.5**: Unified Chat/Voice UI - πŸ“‹ **Phases 4-8**: Files, medical features, admin, polish (planned) See [Implementation Status](overview/IMPLEMENTATION_STATUS.md) for current progress. ### Future: Kubernetes Migration (Optional) **Goal**: Scale to multi-node K8s cluster - Follow [COMPOSE_TO_K8S_MIGRATION.md](COMPOSE_TO_K8S_MIGRATION.md) - Convert Docker Compose to K8s manifests or Helm charts - Add auto-scaling, load balancing, multi-region --- ## πŸ”‘ Key Decisions & Rationale ### 1. Docker Compose First, Kubernetes Later **Decision**: Build with Docker Compose, deploy to single Ubuntu server first, migrate to K8s when needed **Rationale**: - Faster development iteration - Simpler debugging and local testing - Cost-effective for initial deployment - Easy migration path when scaling needs arise ### 2. Separate Nextcloud Stack **Decision**: Run Nextcloud in separate Docker Compose stack with its own database **Rationale**: - PHI isolation (separate audit logs, backups, encryption keys) - Independent scaling and maintenance - Clear security boundary - Easier compliance audits ### 3. HIPAA Compliance from Day 1 **Decision**: Build HIPAA controls into every component from the start **Rationale**: - Retrofitting compliance is expensive and risky - PHI detection must be part of core routing logic - Audit logging must be comprehensive from start - Encryption and access controls easier to add early ### 4. Hybrid AI Model **Decision**: Use local Llama for PHI queries, cloud models for general questions **Rationale**: - Keeps PHI on-premises for HIPAA compliance - Leverages cloud model quality when safe - Reduces cloud costs by routing appropriately - Provides fallback options ### 5. Phase-Based Development **Decision**: Break project into 16 sequential phases (0-15) **Rationale**: - Each phase is independently completable - Clear exit criteria and verification - Easy progress tracking - Suitable for AI-assisted development with Claude Code --- ## 🏁 Getting Started ### Prerequisites - macOS (or Linux) with Docker Desktop - Python 3.11+ - Node.js 18+ with pnpm - 16GB RAM minimum - Basic knowledge of FastAPI, Next.js, Docker ### Step 1: Set Up Environment ```bash # Navigate to project root cd ~/VoiceAssist # or your project directory # Read the local development guide cat docs/LOCAL_DEVELOPMENT.md # Follow the setup instructions # - Install Docker Desktop # - Create .env files # - Start Docker Compose services ``` ### Step 2: Understand the Architecture ```bash # Read architecture document cat docs/ARCHITECTURE_V2.md # Review key specifications cat docs/WEB_APP_SPECS.md cat docs/ADMIN_PANEL_SPECS.md cat docs/SEMANTIC_SEARCH_DESIGN.md ``` ### Step 3: Start Phase 0 ```bash # Read Phase 0 instructions cat docs/phases/PHASE_00_INITIALIZATION.md # This phase ensures you understand: # - System architecture # - Clinical workflows # - Security requirements # - Development approach ``` ### Step 4: Continue Through Phases Follow phases sequentially, verifying exit criteria before moving to the next phase. --- ## 🧭 Learning Path ### Week 1: Foundation - **Day 1-2**: Read all specifications, understand architecture - **Day 3**: Set up local environment (Phase 1) - **Day 4**: Create database schema (Phase 2) - **Day 5**: Implement authentication (Phase 3) ### Week 2: Core Features - **Day 1-2**: Document ingestion pipeline (Phase 4) - **Day 3-4**: Semantic search and RAG (Phase 5) - **Day 5**: PHI detection (Phase 6) ### Week 3: AI & Integration - **Day 1-2**: AI model router (Phase 7) - **Day 3**: External search APIs (Phase 8) - **Day 4**: Nextcloud integration (Phase 9) - **Day 5**: WebSocket and voice (Phase 10) ### Week 4: Frontend - **Day 1-4**: Web app UI (Phase 11) - **Day 5**: Admin panel UI (Phase 12) ### Week 5: Production - **Day 1-2**: Testing and monitoring (Phase 13) - **Day 3-4**: Production deployment (Phase 14) - **Day 5**: Verification and documentation --- ## πŸ“ Development Workflow ### Daily Workflow 1. **Start services**: `docker compose up -d` 2. **Check logs**: `docker compose logs -f` 3. **Work on current phase**: Follow phase document 4. **Run tests**: `pytest` or `pnpm test` 5. **Verify functionality**: Manual testing 6. **Commit changes**: Git commit with clear message 7. **Update phase status**: Mark tasks complete ### Working with Claude Code ``` I want to work on Phase [N]. Please: 1. Read ~/VoiceAssist/docs/phases/PHASE_[N]_*.md 2. Check all prerequisites are met 3. Complete all tasks in order 4. Run all tests and verify functionality 5. Update documentation 6. Verify exit criteria 7. Commit the changes ``` ### Troubleshooting - Check service logs: `docker compose logs [service-name]` - Verify environment variables: `cat .env` - Review [LOCAL_DEVELOPMENT.md](LOCAL_DEVELOPMENT.md) troubleshooting section - Check phase-specific troubleshooting in phase documents --- ## πŸ“Š Project Status **Current Status**: Backend, Infrastructure, Admin Panel, and Web App (Phase 3.5) Production-Ready. **Phase Completion**: All 16 project phases (0-15) complete. Web app Phase 3.5 (Unified Chat/Voice UI) complete. **Implementation Reference**: See [Implementation Status](overview/IMPLEMENTATION_STATUS.md) for detailed component status. **Target Deployment**: Ubuntu server with Docker Compose (production-ready) --- ## πŸ†˜ Support & Resources ### Documentation - **All specs**: `docs/` - **Phase docs**: `docs/phases/` - **Applications**: `apps/{web-app,admin-panel,docs-site}/` - **Services**: `services/api-gateway/` - **Server**: `server/` ### Key Technologies - **Backend**: FastAPI, SQLAlchemy, Alembic, LangChain - **Frontend**: Vite + React (web-app, admin-panel), Next.js 14 (docs-site), TailwindCSS, shadcn/ui - **AI/ML**: OpenAI GPT-4o, Qdrant, ElevenLabs TTS, Deepgram STT - **Infrastructure**: Docker Compose, PostgreSQL, Redis, Nextcloud ### Getting Help 1. Check phase troubleshooting section 2. Review specification documents 3. Search logs for errors 4. Ask Claude Code for assistance with specific issues --- ## πŸ“‡ Machine-Readable Documentation API For AI assistants and automated tooling, VoiceAssist provides machine-readable JSON endpoints: ### Web API Endpoints **Base URL**: `https://assistdocs.asimo.io` | Endpoint | Purpose | | -------------------- | ---------------------------------------------- | | `/agent/index.json` | Documentation system metadata and discovery | | `/agent/docs.json` | Full document list with metadata for filtering | | `/search-index.json` | Full-text search index (Fuse.js format) | | `/sitemap.xml` | XML sitemap for crawlers | **Usage by AI Agents**: 1. Fetch `/agent/index.json` to understand available endpoints and schema 2. Fetch `/agent/docs.json` to get all documents with metadata 3. Filter client-side by `status`, `audience`, `tags`, etc. 4. Use `/search-index.json` with Fuse.js for full-text search See the [Agent API Reference](ai/AGENT_API_REFERENCE.md) for complete details. ### DOC_INDEX.yml (Legacy) **Location**: [`docs/DOC_INDEX.yml`](DOC_INDEX.yml) **Purpose**: Canonical registry of all project documentation with metadata. This YAML file is still available for local tooling but the web JSON endpoints are preferred for programmatic access. --- ## πŸŽ‰ Let's Build! You now have a comprehensive understanding of VoiceAssist V2. The project is structured to be built phase-by-phase, with clear specifications and requirements at every step. **Ready to start?** Open [PHASE_00_INITIALIZATION.md](phases/PHASE_00_INITIALIZATION.md) and begin your journey. Good luck! πŸš€ --- ## πŸ“œ Legacy V1 Materials The following documents describe the original 20-phase V1 plan. They are preserved **for historical reference only** and are not canonical for V2 development: - [DEVELOPMENT_PHASES.md](DEVELOPMENT_PHASES.md) - Original 20-phase plan (V1) - [ALL_PHASES_SUMMARY.md](ALL_PHASES_SUMMARY.md) - Original phase summaries (V1) - [ROADMAP.md](ROADMAP.md) - Original roadmap (V1) - [ARCHITECTURE.md](ARCHITECTURE.md) - Original architecture (V1) - [../PHASE_STATUS.md](../PHASE_STATUS.md) - Original phase tracking (V1) **Note**: All V1 documents have been marked with a legacy banner directing readers to the current V2 documentation. 6:["slug","START_HERE","c"] 0:["X7oMT3VrOffzp0qvbeOas",[[["",{"children":["docs",{"children":[["slug","START_HERE","c"],{"children":["__PAGE__?{\"slug\":[\"START_HERE\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","START_HERE","c"],{"children":["__PAGE__",{},[["$L1",["$","div",null,{"children":[["$","div",null,{"className":"mb-6 flex items-center justify-between gap-4","children":[["$","div",null,{"children":[["$","p",null,{"className":"text-sm text-gray-500 dark:text-gray-400","children":"Docs / Raw"}],["$","h1",null,{"className":"text-3xl font-bold text-gray-900 dark:text-white","children":"Start Here"}],["$","p",null,{"className":"text-sm text-gray-600 dark:text-gray-400","children":["Sourced from"," ",["$","code",null,{"className":"font-mono text-xs","children":["docs/","START_HERE.md"]}]]}]]}],["$","a",null,{"href":"https://github.com/mohammednazmy/VoiceAssist/edit/main/docs/START_HERE.md","target":"_blank","rel":"noreferrer","className":"inline-flex items-center gap-2 rounded-md border border-gray-200 dark:border-gray-700 px-3 py-1.5 text-sm text-gray-700 dark:text-gray-200 hover:border-primary-500 dark:hover:border-primary-400 hover:text-primary-700 dark:hover:text-primary-300","children":"Edit on GitHub"}]]}],["$","div",null,{"className":"rounded-lg border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 p-6","children":["$","$L2",null,{"content":"$3"}]}],["$","div",null,{"className":"mt-6 flex flex-wrap gap-2 text-sm","children":[["$","$L4",null,{"href":"/reference/all-docs","className":"inline-flex items-center gap-1 rounded-md bg-gray-100 px-3 py-1 text-gray-700 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700","children":"← All documentation"}],["$","$L4",null,{"href":"/","className":"inline-flex items-center gap-1 rounded-md bg-gray-100 px-3 py-1 text-gray-700 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700","children":"Home"}]]}]]}],null],null],null]},[null,["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$6","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[null,["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7f586cdbbaa33ff7.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"h-full","children":["$","body",null,{"className":"__className_f367f3 h-full bg-white dark:bg-gray-900","children":[["$","a",null,{"href":"#main-content","className":"skip-to-content","children":"Skip to main content"}],["$","$L8",null,{"children":[["$","$L9",null,{}],["$","$La",null,{}],["$","main",null,{"id":"main-content","className":"lg:pl-64","role":"main","aria-label":"Documentation content","children":["$","$Lb",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]]}]}]],null],null],["$Lc",null]]]] c:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Start Here | Docs | VoiceAssist Docs"}],["$","meta","3",{"name":"description","content":"**Welcome to VoiceAssist V2** - A HIPAA-compliant voice-enabled clinical decision support system."}],["$","meta","4",{"name":"keywords","content":"VoiceAssist,documentation,medical AI,voice assistant,healthcare,HIPAA,API"}],["$","meta","5",{"name":"robots","content":"index, follow"}],["$","meta","6",{"name":"googlebot","content":"index, follow"}],["$","link","7",{"rel":"canonical","href":"https://assistdocs.asimo.io"}],["$","meta","8",{"property":"og:title","content":"VoiceAssist Documentation"}],["$","meta","9",{"property":"og:description","content":"Comprehensive documentation for VoiceAssist - Enterprise Medical AI Assistant"}],["$","meta","10",{"property":"og:url","content":"https://assistdocs.asimo.io"}],["$","meta","11",{"property":"og:site_name","content":"VoiceAssist Docs"}],["$","meta","12",{"property":"og:type","content":"website"}],["$","meta","13",{"name":"twitter:card","content":"summary"}],["$","meta","14",{"name":"twitter:title","content":"VoiceAssist Documentation"}],["$","meta","15",{"name":"twitter:description","content":"Comprehensive documentation for VoiceAssist - Enterprise Medical AI Assistant"}],["$","meta","16",{"name":"next-size-adjust"}]] 1:null