Fix RAG admin: vectors_count->points_count, remove unindexed order_by, make RAG_COLLECTION env-configurable

This commit is contained in:
gramps
2026-07-14 15:18:05 -07:00
parent 0b4810ce31
commit 02d1b0432c
4 changed files with 6 additions and 7 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ async def get_collection_count() -> int:
timeout=10.0,
)
if resp.status_code == 200:
return resp.json().get("result", {}).get("vectors_count", 0)
info = resp.json().get("result", {})
return info.get("points_count", info.get("vectors_count", 0))
except Exception as e:
log.warning(f"get_collection_count error: {e}")
return 0