Cập nhật
Cập nhật code thường không yêu cầu rebuild DB. Nếu update đổi schema (hiếm), changelog sẽ note rõ migration step.
Migration sau khi đổi schema
Nếu thay đổischema.sql (ví dụ thêm cột, đổi dim embedding):
-
Backup DB:
-
Xoá DB:
-
Re-scan toàn bộ:
Vì idempotency dựa trên SHA-256, mọi file sẽ được re-analyze + re-embed (tốn LLM call).
Gỡ cài đặt
Cách 1 — Uninstall.command / Uninstall.bat
macOS
macOS
Double-click
setup/Uninstall.command. Script sẽ:- Stop + remove launchd service.
- Hỏi xác nhận trước khi xoá
.asset_index/,.venv/,.env. - Giữ nguyên repo và mọi file nguồn.
Windows
Windows
Double-click
setup\Uninstall.bat. Tương tự macOS — gỡ Task Scheduler entry, prompt xoá runtime files.Cách 2 — Manual
Stop + uninstall service
- macOS:
launchctl list | grep com.video-agent→ không có output. - Windows:
schtasks /query /tn VideoAgentAssetIndex→ “Task does not exist”. - Linux:
systemctl --user status video-agent-asset-index→ not-found.
Backup full repo
Để move sang máy khác:Kiểm tra dung lượng
DB + raw_assets có thể lớn nhanh. Check size:-
Xoá file không còn cần trong
raw_assets/→ re-scan để cleanupassetsrows orphaned. -
Vacuum DB:
Bước tiếp theo
Khắc phục sự cố
Lỗi sau khi update.
Đóng góp
Submit feedback / patch về repo.