Skip to content

Repository files navigation

Persistent Memory

A multi-service application combining face recognition, interlocutor tracking, and backend APIs.

Project Structure

Persistent-Memory/
├── frontend/                    # TypeScript frontend code
│   ├── interlocutorTracker.ts  # Mock interlocutor tracker for EgoMem
│   └── package.json            # Node.js dependencies
│
├── backend/                     # Python FastAPI backend
│   └── app/
│       ├── main.py            # FastAPI application entry point
│       ├── api/
│       │   ├── deps.py         # Dependency injection
│       │   └── routes/
│       │       └── user.py     # User endpoints
│       ├── core/
│       │   ├── config.py       # Configuration
│       │   └── database.py     # Database setup
│       ├── crud/
│       │   └── user.py         # CRUD operations
│       ├── models/
│       │   └── user.py         # Database models
│       └── schema/
│           └── user.py         # Pydantic schemas
│
└── services/                    # External services and ML
    └── face_recog_local.py     # Local face recognition service

Development

Frontend

cd frontend
npm install
npm run dev  # or appropriate dev command

Backend

cd backend
pip install -r requirements.txt
python -m uvicorn app.main:app --reload

Backend with Docker

cd backend
docker compose up --build

The API will be available on http://localhost:8000 and PostgreSQL on localhost:5432.

Services

The face_recog_local.py service handles face recognition tasks.

Dependencies

  • Frontend: Node.js with TypeScript
  • Backend: Python 3.8+ with FastAPI
  • Services: Face recognition libraries (see requirements.txt)

About

Long term memory system for smart glasses that enables persistent recall of people

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages