[changes] Hide the user knowledge base and unify the display of memory capacity

This commit is contained in:
lanceyq
2026-03-04 17:46:13 +08:00
parent 720498084b
commit 850d9ee70b
4 changed files with 97 additions and 9 deletions

View File

@@ -606,8 +606,8 @@ async def dashboard_data(
# 获取RAG相关数据
try:
# total_memory: 使用 total_chunkchunk数
total_chunk = memory_dashboard_service.get_rag_total_chunk(db, current_user)
# total_memory: 只统计用户知识库permission_id='Memory')的chunk数
total_chunk = memory_dashboard_service.get_rag_user_kb_total_chunk(db, current_user)
rag_data["total_memory"] = total_chunk
# total_app: 统计当前空间下的所有app数量