Docs / Raw

Readme

Sourced from docs/README.md

Edit on GitHub

VoiceAssist V2 Documentation Index

Last Updated: 2025-11-27 Project Status: โœ… All 15 Phases Complete - Production Ready (100%)


๐Ÿ“š Quick Navigation

๐Ÿค– For AI Agents

If you're an AI coding assistant (Claude, GPT, Copilot, etc.):

  • ai/AGENT_ONBOARDING.md - Start here for quick context, repository structure, critical rules, and common tasks
  • overview/IMPLEMENTATION_STATUS.md - Single source of truth for component status
  • Key Rule: Use services/api-gateway/ for backend work (NOT server/ which is deprecated)

๐Ÿš€ Start Here

๐Ÿ—๏ธ Architecture

๐Ÿ“‹ Development Phases

๐Ÿ”ง Integration Improvements (Phase 7 Enhancement)

  • INTEGRATION_IMPROVEMENTS_PHASE_0-8.md - Integration roadmap
  • INTEGRATION_HANDOFF.md - Handoff document (previous session)
  • Status: Priority 1-3 Complete (210/392 hours = 54%)
    • โœ… P1: Health monitoring, tracing, config docs, security dashboards, async queues
    • โœ… P2: Multi-level caching, E2E tests, SLO monitoring, architecture docs, connection pools
    • โœ… P3: Feature flags, operational runbooks, business metrics, contract testing, chaos engineering
    • ๐Ÿ“‹ P4: Secret management, UX monitoring, cost dashboard, onboarding, alert escalation (144h remaining)

๐Ÿ” Feature-Specific Documentation

Security & Compliance

Medical Features

Integrations

Infrastructure

Backend Services & Shared Packages

DocumentPurposeAudience
SERVICE_CATALOG.mdMicroservices catalogAll developers, DevOps
../services/api-gateway/README.mdCanonical API Gateway guideBackend devs
server/README.mdLegacy server stub referenceBackend devs
../apps/web-app/README.mdWeb app implementation detailsFrontend devs
../apps/admin-panel/README.mdAdmin panel implementation detailsFrontend devs
../apps/docs-site/README.mdDocumentation site implementationFrontend devs

Shared packages:


๐Ÿ“Š Operations & Monitoring

Observability

Operational Runbooks

All runbooks are production-ready with copy-paste commands:


๐Ÿงช Testing

Testing Documentation

Test Types

  • Unit Tests: Located in tests/unit/
  • Integration Tests: Located in tests/integration/
  • Contract Tests: Located in tests/contract/ (NEW)
  • Chaos Experiments: Located in chaos/experiments/ (NEW)

โš™๏ธ Configuration

Configuration References

  • CONFIGURATION_REFERENCE.md - Complete configuration catalog
  • .env.example - Environment variable template
  • docker-compose.yml - Service orchestration

Configuration by Component

  • Database: PostgreSQL with pgvector
  • Cache: Redis with connection pooling
  • Vector Store: Qdrant
  • Content: Nextcloud with CalDAV/WebDAV
  • Monitoring: Prometheus, Grafana, Jaeger, Loki
  • Contract Testing: Pact Broker (NEW)

๐Ÿ“ API & UI Specifications

API Documentation

  • High-level overview: API_REFERENCE.md โ€” use this for conceptual guidance, endpoint group summaries, and quick lookups
  • REST reference: api-reference/rest-api.md โ€” use this when you need request/response schemas, parameters, and concrete examples
  • OpenAPI Spec: Available at http://localhost:8000/docs when running
  • ReDoc: Available at http://localhost:8000/redoc

UI Specifications


๐Ÿ“ˆ Phase Completion Reports

Completed Phases

Summary Documents


๐ŸŽฏ Current Status (2025-11-27)

โœ… All 15 Phases Complete - 100% Production Ready

Phase 0-1: Infrastructure, database, API gateway Phase 2: Security (JWT), Nextcloud integration Phase 3: Core microservices Phase 4: Realtime WebSocket communication Phase 5: Medical knowledge base with RAG Phase 6: Nextcloud app integration (CalDAV, files, email) Phase 7: Admin panel with RBAC Phase 8: Full observability stack (Prometheus, Grafana, Jaeger, Loki) Phase 9: Infrastructure as Code & CI/CD (Terraform, Ansible, GitHub Actions) Phase 10: Load testing & performance optimization Phase 11: Security hardening & HIPAA compliance Phase 12: High availability & disaster recovery Phase 13: Final testing & documentation Phase 14: Production deployment Phase 15: Final review & handoff

๐Ÿš€ Current Focus: Frontend Development & Continuous Improvement

  • Client Applications: Web app, admin panel, docs site (monorepo with pnpm + Turborepo)
  • Frontend Status: Phase 0-2 complete, Phase 3 (Voice Features) in progress
  • See CONTINUOUS_IMPROVEMENT_PLAN.md for roadmap

๐Ÿš€ Quick Start Commands

Start All Services

cd ~/VoiceAssist docker compose up -d

Verify System Health

curl http://localhost:8000/health

View Metrics

curl http://localhost:8000/metrics | head -50

Run Tests

# Unit tests pytest tests/unit/ # Integration tests pytest tests/integration/ # Contract tests (NEW) pytest tests/contract/ # Chaos tests (NEW) ./scripts/run-chaos-tests.sh

Access Dashboards


๐Ÿ“Š Metrics & Monitoring

Business Metrics (NEW)

VoiceAssist now exposes 257 lines of business metrics:

User Activity: DAU, MAU, registrations, logins, session duration RAG Performance: Query success rate, citations per query, satisfaction scores Knowledge Base: Documents, chunks, upload rates, indexing duration API Usage: Endpoint calls, response times Cost Tracking: OpenAI API calls, token usage, estimated costs System Health: Uptime, feature flag checks, admin actions

Dashboard: Import dashboards/business-metrics.json into Grafana (20 panels)

Key Prometheus Queries

# Daily Active Users voiceassist_active_users_daily # RAG Query Success Rate sum(voiceassist_rag_queries_total{success="true"}) / sum(voiceassist_rag_queries_total) # API P95 Latency histogram_quantile(0.95, voiceassist_http_request_duration_seconds_bucket) # OpenAI Cost voiceassist_openai_api_cost_dollars_total

๐Ÿ”— External Resources

Tools & Technologies

Compliance


๐Ÿ“ž Support & Contact

Documentation Issues

  • File issues in the project repository
  • Check TROUBLESHOOTING.md for common problems

Phase-Specific Questions

  • Refer to individual phase completion reports
  • Check operations/runbooks/ for operational procedures

๐Ÿ“ Document Maintenance

Last Updated: 2025-11-27 Maintained By: VoiceAssist Development Team Review Cycle: After each phase completion Format: GitHub-Flavored Markdown

Contributing to Documentation

  1. Keep docs concise and actionable
  2. Update this index when adding new docs
  3. Follow existing formatting conventions
  4. Include code examples where helpful
  5. Mark deprecated docs with โš ๏ธ prefix

Version: V2.0 Status: โœ… Production Ready (All 15 Phases Complete) Current Focus: Frontend Development & Continuous Improvement

Beginning of guide
End of guide