From 666a237a8bc4ec5214703c9664437b526c3667b4 Mon Sep 17 00:00:00 2001 From: gramps Date: Sun, 19 Jul 2026 16:00:24 -0700 Subject: [PATCH] docs: update Work State in ai.md with current session progress --- ai.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ai.md b/ai.md index 25a83f7..95a0aef 100644 --- a/ai.md +++ b/ai.md @@ -138,10 +138,11 @@ All streaming endpoints yield `data: {json}\n\n`. Key shapes: ## Work State ### Completed this session -- **B4 — RAG Corpus Management UI** — Paginated browse, semantic search, source filter, edit text with re-embed, single-point delete, bulk flush. Backend: `GET /api/rag/points`, `GET /api/rag/point/{id}`, `DELETE /api/rag/point/{id}`, `PATCH /api/rag/point/{id}`. Frontend: admin-only modal with stats bar, search bar, paginated table, per-row edit/delete, double-confirm flush. -- **RAG bugfixes**: Fixed Qdrant collection name mismatch (`jarvis_rag` → `caic_rag`, migrated 219 points). Fixed `vectors_count` → `points_count` in `eviction.py`/`rag_admin.py` (Qdrant v1.10+ API change). Removed unindexed `order_by` that caused 502 on scroll. Made `RAG_COLLECTION` env-configurable (`CAIC_RAG_COLLECTION`). -- **Topbar redesign**: Moved system stats (CPU/MEM/GPU/VRAM/TOK) to a centered bottom strip. Moved toggles (MEM, SEARCH, PROFILE, SORT, PRIVACY) into a ⋮ hamburger menu next to ADMIN badge. Placed palette icon immediately after version number in topbar-left. Removed standalone (i) button; privacy info accessible via ⋮ → About Privacy. Mobile-responsive padding/sizing. -- **Semantic search fix**: Set `CAIC_EMBED_URL=http://192.168.50.108:11434` on jarvis (model `mxbai-embed-large` is on ultron, not the old embed server). +- **Pre-Docker review**: Full findings report delivered -- 30+ issues across 7 categories (hardcoded hosts/paths, config/secrets, AMQP gaps, resource cleanup, SQLite container safety, completions concurrency, TASKS.md accuracy). +- **Deprecation fix**: Replaced `asyncio.ensure_future` with `asyncio.create_task` in `rag.py` and `routers/chat.py`. +- **Documentation**: Added inline comments and docstrings to all functions in `db.py`. +- **Uninstall scripts**: Created and committed `scripts/uninstall.sh`, `teardown-docker.sh`, `nuclear-clean.sh`. +- **README**: Added "Uninstalling cAIc" section. ### Active - (none)