Commit graph

11 commits

Author SHA1 Message Date
ZTatman
3d496b1405 docs: align Supabase plan with core schema 2026-04-07 16:58:56 -04:00
ZTatman
ecf23bad29 Address PR nitpicks: lru_cache pattern, updated_at trigger, missing imports
- Align NEW_PLAN.md db.py example to use @lru_cache(maxsize=1) for both
  get_supabase() and get_embedding_model(), matching actual implementation
- Add missing imports (datetime, HTTPException, get_supabase) to
  check_ai_limit code example in NEW_PLAN.md
- Add migration to auto-update entry_analysis.updated_at on row modification
  via a BEFORE UPDATE trigger

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 19:03:47 -04:00
ZTatman
b0fe371bed Fix signed URL example in docs 2026-03-27 18:06:44 -04:00
ZTatman
360cde9aef Filter null embeddings in match_entries docs 2026-03-27 18:05:18 -04:00
ZTatman
3ecb95caea Switch embedding index to HNSW 2026-03-27 18:03:07 -04:00
ZTatman
dfb30e1e52 Clarify markdown fence formatting 2026-03-27 17:57:15 -04:00
ZTatman
ee83e4c97e Align docs with core schema migration 2026-03-27 17:53:16 -04:00
ZTatman
1af765a6aa Add core Supabase schema migration 2026-03-27 17:22:21 -04:00
ZTatman
0c0ba74c09 Phase 1: restructure into backend/ and fix module import side effects
- Move all Python source files into backend/ directory
- Fix db.py: use absolute path (Path(__file__).parent) for chroma_db
  so the DB is always found regardless of where the server is launched from
- Fix store.py: guard test entry under if __name__ == "__main__" to
  prevent duplicate inserts on every import
- Fix query.py: extract query_entries(question) -> str function and
  move interactive loop under __main__ guard so it can be imported
  cleanly by FastAPI without blocking on input()
- Add .claude/launch.json with FastAPI dev server configuration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 16:30:34 -04:00
ZTatman
47fa83d441 Enhance query and store functionality: Added .env file loading check with warning, improved context building in query.py, and updated metadata formatting in store.py. Included a test voice entry for better demonstration. 2026-03-13 13:10:15 -04:00
ZTatman
698eba26c7 Initial commit to Nadir voice diary 2026-03-12 12:54:25 -04:00