Skip to content

About

Web app for dementa and memory illlnesses patients

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

274 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Lane

Patient-centric AI memory companion curated collaboratively by a patient's Care Circle (family members, friends, home aides, and care specialists), combining personalized AI replicas, folders of uploaded journals/PDFs, private family photo galleries, and Care Circle moderation.

Architecture Overview

  • server/: Unified Go backend (module AlphaTechini/memory-lane) deployed as a single stateless container on GCP Cloud Run. Includes swappable provider interfaces for LLM (OpenAI default, model and reasoning effort env-configurable), Embeddings (text-embedding-3-small with lexical fallback), Media (Cloudinary), Email (Cloudflare Email Sending REST API), OAuth (Firebase RS256 public certs), and Storage (MongoDB).
  • Frontend/: SvelteKit + Tailwind CSS web app (pnpm) for Care Circle contributors and patients, with an HTTP-only cookie proxy to the Go API.

(Legacy Node/Fastify backend/ is scheduled for retirement once live GCP verification completes.)

Core Capabilities

  • Patient-Centric Care Circle: Primary caretakers invite patients (passwordless email-only access) plus multi-role Care Circle contributors (clinician, home_aide, family, friend) into shared, isolated patient workspaces.
  • Journals, PDFs, DOCX & Folders: Upload individual documents or entire nested desktop folders (webkitdirectory); pure-Go extraction, paragraph-aware chunking, optional vector embeddings, and full CRUD.
  • 1-Call Pre-Fetched Hybrid RAG Chat: Pre-fetches core identity facts and top-K hybrid (vector + lexical + importance) memories before calling the configured LLM, with optional get_image (inline gallery photos) and store_memory tools.
  • Care Circle Review Queue: Structured background extraction proposes new identity facts and memories for caretaker approval before permanent commit.
  • Family Photo Gallery: Care Circle albums and photos hosted via swappable media.Store (Cloudinary default).

Local Development

1. Unified Go Server (server/)

cd server
Copy-Item .env.example .env
go run ./cmd/server

Default address: http://localhost:8080

2. Frontend (Frontend/)

cd Frontend
pnpm install
pnpm run dev

Default address: http://localhost:5173

GCP Cloud Run Deployment

cd server
gcloud run deploy memory-lane-api --source . --region europe-west1 --allow-unauthenticated

Configure secrets/env vars from server/.env.example in Cloud Run / Secret Manager. Never commit .env files.

About

Web app for dementa and memory illlnesses patients

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages