← projects

PRJ-07REV 2026.10

WhiteBoRAG

Ask questions about your whiteboard. An ESP32-CAM snaps it, vision LLMs transcribe it, and RAG answers with links back to the photos.

tags
AIHardwareEmbeddedBackend
stack
ESP32-CAM · Python · Terraform · AWS Lambda · API Gateway · SQS · DynamoDB · S3 Vectors · Bedrock (Nova, Titan) · Qdrant · SQLite · OpenRouter · Claude Sonnet and Haiku
Screenshot of WhiteBoRAG

Problem

Whiteboards hold a project’s real thinking: architecture sketches, todo lists, the arrow someone drew in a meeting. Then they get wiped, or photographed and lost in a camera roll. I wanted to ask “what’s left to do on WhiteBoRAG?” or “where did we draw the vector store?” and get an answer that points back to the board.

What I built

An ESP32-CAM points at the whiteboard. Tap a touch pad next to it and it photographs the board. Each photo is checked for readability, transcribed to Markdown (title, boxes and arrows, todos and notes), filed under its project from the board’s title, and indexed. A chat page answers questions with dates and links to the source photos. It tracks todos across boards, so when I tick one off and take a new photo, the answer updates.

The first capture rig: an IR sensor (top) and the ESP32-CAM (bottom) on a breadboard

The first rig. The IR trigger proved unreliable, so a capacitive touch pad on the same pin replaced it.

Version 1: serverless on AWS, all in Terraform

  • Capture: the camera gets a pre-signed URL from API Gateway and a Lambda, using its own device API key, then uploads straight to S3.
  • Ingest:
    • S3 → SQS → Lambda.
    • Bedrock Nova Pro checks the photo is readable. Nova 2 Lite transcribes and normalizes it.
    • Boards and todos go to DynamoDB, and Titan embeddings to S3 Vectors.
    • After three failures a capture goes to a dead-letter queue, and an alarm emails me.
  • Query:
    • A Lambda works out the type of question: todos, latest board, diagram history or search.
    • It matches project names fuzzily and asks “did you mean…?” rather than guessing.
    • It answers only from matching boards, with short-lived photo links.

Evals before building

  • AWS: I compared 9 OCR engines on 13 real photos for under $1: Textract, Rekognition, Nova models and OCR+LLM hybrids. Nova 2 Lite won at about $0.0005 per photo, but it recovered only about half the arrows in diagrams.
  • Local: For the second version, I moved ingest and query to a Python server on my laptop, with Qdrant and SQLite, running the same code unchanged. Then I ran a model bake-off through OpenRouter on the same 13 photos, for $0.34 in total:
Model Word accuracy Arrows found Cost / photo
Claude Sonnet 5.5 0.98 0.96 $0.0074
Claude Haiku 5.5 0.96 0.96 $0.0007
Gemini 3.5 Flash Lite 0.98 0.82 $0.0006
Nova 2 Lite (AWS pick) 0.86 0.48 $0.0004

Now Sonnet reads the boards and Haiku handles the rest. Diagrams, the weak spot in version 1, now come out right: it names all six boxes and how they connect, from a low-res photo of my handwriting. I also tried fully local models (Qwen3-VL-8B on an 8 GB GPU). They worked, but were slow and misread project titles.

What’s next

It’s a demo: one user, no accounts, and a small eval set. The code, the eval harness and the full results are on GitHub.