Effortlessly track your health data and access personalized medical expert level insights, all at your fingertips.
Problem: Healthcare is complex and fragmented
Solution: A Digital Doctor that serves as an accurate mirror of you, providing personalized health insights, proactive care, and seamless health management.
Our digital doctor consists of three core components:
- AI-driven medical document processor that serves as the foundation for tracking your health. Upload documents and images securely, consolidating all your health data in one safe location.
- Highly accurate digital health representation of yourself, offering real-time insights and conversational healthcare assistants. Understand your health better, and summarize your current situation easily for healthcare professionals.
- Simulating your future health trajectory to identify future healthcare needs and explore treatment options, including risks and side effects. All information is personalized based on your digital health twin.
- Python 3.7+
- Node.js 14+
- npm or yarn
- Docker (for running Supabase locally)
-
Clone the repository:
git clone https://github.com/your-username/doubleyou.git cd doubleyou -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt npm install
-
Set up environment variables: Create a
.envfile in the root directory and add:MISTRAL_API_KEY=your_mistral_api_key_here -
Install Supabase CLI: Follow the instructions at https://supabase.com/docs/guides/cli to install the Supabase CLI for your operating system.
-
Start Supabase locally:
supabase start
-
Set up Prisma:
npx prisma generate
To run both the Next.js frontend, FastAPI backend, and local Supabase instance concurrently:
npm run devThis will start:
- Next.js frontend on http://localhost:3000
- FastAPI backend on http://localhost:8000
- Supabase Studio on http://localhost:54323
-
To view and manage your local database, access Supabase Studio at http://localhost:54323
-
To update your database schema:
- Modify your Prisma schema in
prisma/schema.prisma - Run migrations:
npm run migrate
- Generate Prisma client:
npm run generate
- Modify your Prisma schema in
-
To open Prisma Studio for database visualization:
npm run db
The project includes several API endpoints:
/api/py/mistral(POST): Chat with the Mistral AI model/api/py/pixtral(POST): Analyze images using the Pixtral model/medical_summary(POST): Generate a medical summary from a list of medical events/simulate(POST): Simulate future medical events based on current medical history
- AI-powered Chat: Interact with a medical AI assistant using the Mistral model.
- Image Analysis: Upload and analyze medical images or documents using the Pixtral model.
- Medical Summary Generation: Automatically generate concise medical summaries from a series of medical events.
- Health Simulation: Predict potential future health events based on current medical history.
- Frontend: Next.js 14
- Backend: FastAPI (Python)
- AI Models: Mistral AI, Pixtral
- Database: Prisma (as indicated in package.json)
