AidAILine / README.md
J-Barrert's picture
Update README.md
284f4f9 verified
|
Raw
History Blame Contribute Delete
5.27 kB

A newer version of the Gradio SDK is available: 6.20.0

Upgrade
metadata
title: AidAILine
emoji: 🩺
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: mit
short_description: Local-first medical record keeper for caregivers
tags:
  - build-small
  - track:backyard-ai
  - badge:off-brand
  - badge:best-demo

πŸ₯ AidAILine

Build Small Hackathon β€” Backyard AI Track Built for caregivers managing multi-provider care for a dependent. Local-first. AI-powered. Nothing leaves your computer.

Demo & Social Links


The Story

Caregivers track a lot. Doctors, physical therapy, weekly prescriptions, monthly refills, lab results from three different clinics, allergies, and the questions you wish you'd asked at the last visit.

Today, that lives on a paper calendar with sticky notes pinned to it. Things fall through the cracks.

AidAILine replaces the paper calendar and the sticky notes with a local-first Gradio app that runs on your own hardware. A small AI model (Qwen 2.5 7B Instruct via the HF Inference API) reads your uploaded medical PDFs and answers questions about them in plain language. The app itself is small enough to read end-to-end. Your data never leaves the app.

No telemetry. No analytics. No cloud sync. No accounts.


What It Does

Tab What it does
πŸ“„ Documents Upload PDFs β†’ ask questions in natural language via small AI
πŸ’Š Medications Track current & past meds with dosage, frequency, side effects, and notes
πŸ“… Appointments Upcoming appointments with timeline, prep notes, and a calendar-aware add/edit flow
🍽️ Food Chart Liked / Disliked / Allergy foods in three columns β€” print and bring to the visit
πŸ“‹ Doctor Visit Pre-Visit Brief generator β€” pulls meds, allergies, and your custom questions into a print-ready handout
πŸ“€ Export & Share One-click copy, mailto link, or print for the full caregiver summary
βš™οΈ Settings Patient info, model path, privacy-first portal integrations (clearly marked as future work)

The pre-visit brief is the killer feature. Walk into grandma's appointment with a single page that says: "Here's her current meds, here are the foods she can't eat, here are the three questions I want to ask today." Most caregivers bring nothing. AidAILine gives you a reason to bring everything.


Tech Stack

Component Library
UI Gradio 5
AI (Documents tab) Qwen 2.5 7B Instruct via Hugging Face Inference API
Embeddings sentence-transformers (all-MiniLM-L6-v2)
Vector Store FAISS
PDF Parsing PyMuPDF
Storage Local JSON files

All models are under 32B parameters. The app runs on a free Hugging Face CPU Space.


Why "Backyard AI"

This is the textbook backyard build:

  • Small model β€” Qwen 2.5 7B runs on the HF Inference API, free tier
  • Local storage β€” everything is plain JSON in data/
  • Local PDF parsing β€” no cloud OCR
  • No telemetry β€” open the network tab, watch nothing happen
  • No accounts β€” no signup, no login, no password reset
  • Open weights β€” Qwen 2.5 is Apache 2.0

The 6 core tabs (medications, appointments, food, doctor visit, export, settings) run fully offline. Only the Documents tab calls the Inference API, and only to run the small model β€” your data and your prompts are not stored or logged by the model host.


Privacy

The 6 core tabs are 100% offline. All patient data is stored as plain JSON files in the data/ directory. No analytics, no telemetry, no accounts. The Documents tab uses a hosted model, but only the question you type is sent to the model β€” the model does not store or train on your prompts.


Project Structure

build-small/
β”œβ”€β”€ app.py                  # Gradio entry point
β”œβ”€β”€ rag_engine.py           # PDF RAG pipeline (embed β†’ FAISS β†’ hosted Qwen)
β”œβ”€β”€ pdf_loader.py           # PDF parsing + chunking
β”œβ”€β”€ med_tracker.py          # Medication CRUD
β”œβ”€β”€ appointment_tracker.py  # Appointment CRUD
β”œβ”€β”€ food_tracker.py         # Food chart CRUD
β”œβ”€β”€ profiles.py             # Multi-profile support
β”œβ”€β”€ doc_forms.py            # Pre-Visit Brief + Doctor Visit generator
β”œβ”€β”€ export_tool.py          # Export + mailto builder
β”œβ”€β”€ config.py               # Paths, settings
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ data/                   # Patient data (JSON)
└── assets/

What's Next (v2)

Captured in a separate vault, planned for after the hackathon:

  • Manager / Sub-Profile architecture β€” primary account manages care for multiple dependents
  • Medication refill & prescription renewal reminders
  • Types of Care provider directory β€” categorized directory with frequency tracking
  • One-tap phone calls to pharmacy and prescriber

The v1 ships the foundation. V2 makes it a household medical command center.


License

MIT

Built for the Build Small Hackathon β€” Backyard AI Track