Commit graph

3 commits

Author SHA1 Message Date
Zach Tatman
6fdf8f67dd
Update backend/query.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-03-18 23:02:34 -04:00
ZTatman
9d4f96e405 refactor: fix import time sideffects in query.py, db.py, organize imports 2026-03-18 18:46:20 -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