gzdaniel commited on
Commit
eba362d
·
1 Parent(s): 284fa0b

feat: add workspace and MAX_GRAPH_NODES to /health endpoint and webui

Browse files
lightrag/api/lightrag_server.py CHANGED
@@ -474,6 +474,8 @@ def create_app(args):
474
  "vector_storage": args.vector_storage,
475
  "enable_llm_cache_for_extract": args.enable_llm_cache_for_extract,
476
  "enable_llm_cache": args.enable_llm_cache,
 
 
477
  },
478
  "auth_mode": auth_mode,
479
  "pipeline_busy": pipeline_status.get("busy", False),
 
474
  "vector_storage": args.vector_storage,
475
  "enable_llm_cache_for_extract": args.enable_llm_cache_for_extract,
476
  "enable_llm_cache": args.enable_llm_cache,
477
+ "workspace": args.workspace,
478
+ "max_graph_nodes": os.getenv("MAX_GRAPH_NODES"),
479
  },
480
  "auth_mode": auth_mode,
481
  "pipeline_busy": pipeline_status.get("busy", False),
lightrag_webui/src/api/lightrag.ts CHANGED
@@ -40,6 +40,8 @@ export type LightragStatus = {
40
  doc_status_storage: string
41
  graph_storage: string
42
  vector_storage: string
 
 
43
  }
44
  update_status?: Record<string, any>
45
  core_version?: string
 
40
  doc_status_storage: string
41
  graph_storage: string
42
  vector_storage: string
43
+ workspace?: string
44
+ max_graph_nodes?: string
45
  }
46
  update_status?: Record<string, any>
47
  core_version?: string
lightrag_webui/src/components/status/StatusCard.tsx CHANGED
@@ -56,6 +56,10 @@ const StatusCard = ({ status }: { status: LightragStatus | null }) => {
56
  <span>{status.configuration.graph_storage}</span>
57
  <span>{t('graphPanel.statusCard.vectorStorage')}:</span>
58
  <span>{status.configuration.vector_storage}</span>
 
 
 
 
59
  </div>
60
  </div>
61
  </div>
 
56
  <span>{status.configuration.graph_storage}</span>
57
  <span>{t('graphPanel.statusCard.vectorStorage')}:</span>
58
  <span>{status.configuration.vector_storage}</span>
59
+ <span>{t('graphPanel.statusCard.workspace')}:</span>
60
+ <span>{status.configuration.workspace || '-'}</span>
61
+ <span>{t('graphPanel.statusCard.maxGraphNodes')}:</span>
62
+ <span>{status.configuration.max_graph_nodes || '-'}</span>
63
  </div>
64
  </div>
65
  </div>
lightrag_webui/src/locales/ar.json CHANGED
@@ -263,7 +263,9 @@
263
  "kvStorage": "تخزين المفتاح-القيمة",
264
  "docStatusStorage": "تخزين حالة المستند",
265
  "graphStorage": "تخزين الرسم البياني",
266
- "vectorStorage": "تخزين المتجهات"
 
 
267
  },
268
  "propertiesView": {
269
  "editProperty": "تعديل {{property}}",
 
263
  "kvStorage": "تخزين المفتاح-القيمة",
264
  "docStatusStorage": "تخزين حالة المستند",
265
  "graphStorage": "تخزين الرسم البياني",
266
+ "vectorStorage": "تخزين المتجهات",
267
+ "workspace": "مساحة العمل",
268
+ "maxGraphNodes": "الحد الأقصى لعقد الرسم البياني"
269
  },
270
  "propertiesView": {
271
  "editProperty": "تعديل {{property}}",
lightrag_webui/src/locales/en.json CHANGED
@@ -263,7 +263,9 @@
263
  "kvStorage": "KV Storage",
264
  "docStatusStorage": "Doc Status Storage",
265
  "graphStorage": "Graph Storage",
266
- "vectorStorage": "Vector Storage"
 
 
267
  },
268
  "propertiesView": {
269
  "editProperty": "Edit {{property}}",
 
263
  "kvStorage": "KV Storage",
264
  "docStatusStorage": "Doc Status Storage",
265
  "graphStorage": "Graph Storage",
266
+ "vectorStorage": "Vector Storage",
267
+ "workspace": "Workspace",
268
+ "maxGraphNodes": "Max Graph Nodes"
269
  },
270
  "propertiesView": {
271
  "editProperty": "Edit {{property}}",
lightrag_webui/src/locales/fr.json CHANGED
@@ -263,7 +263,9 @@
263
  "kvStorage": "Stockage clé-valeur",
264
  "docStatusStorage": "Stockage de l'état des documents",
265
  "graphStorage": "Stockage du graphe",
266
- "vectorStorage": "Stockage vectoriel"
 
 
267
  },
268
  "propertiesView": {
269
  "editProperty": "Modifier {{property}}",
 
263
  "kvStorage": "Stockage clé-valeur",
264
  "docStatusStorage": "Stockage de l'état des documents",
265
  "graphStorage": "Stockage du graphe",
266
+ "vectorStorage": "Stockage vectoriel",
267
+ "workspace": "Espace de travail",
268
+ "maxGraphNodes": "Nombre maximum de nœuds du graphe"
269
  },
270
  "propertiesView": {
271
  "editProperty": "Modifier {{property}}",
lightrag_webui/src/locales/zh.json CHANGED
@@ -263,7 +263,9 @@
263
  "kvStorage": "KV存储",
264
  "docStatusStorage": "文档状态存储",
265
  "graphStorage": "图存储",
266
- "vectorStorage": "向量存储"
 
 
267
  },
268
  "propertiesView": {
269
  "editProperty": "编辑{{property}}",
 
263
  "kvStorage": "KV存储",
264
  "docStatusStorage": "文档状态存储",
265
  "graphStorage": "图存储",
266
+ "vectorStorage": "向量存储",
267
+ "workspace": "工作空间",
268
+ "maxGraphNodes": "最大图节点数"
269
  },
270
  "propertiesView": {
271
  "editProperty": "编辑{{property}}",
lightrag_webui/src/locales/zh_TW.json CHANGED
@@ -263,7 +263,9 @@
263
  "kvStorage": "KV 儲存",
264
  "docStatusStorage": "文件狀態儲存",
265
  "graphStorage": "圖形儲存",
266
- "vectorStorage": "向量儲存"
 
 
267
  },
268
  "propertiesView": {
269
  "editProperty": "編輯{{property}}",
 
263
  "kvStorage": "KV 儲存",
264
  "docStatusStorage": "文件狀態儲存",
265
  "graphStorage": "圖形儲存",
266
+ "vectorStorage": "向量儲存",
267
+ "workspace": "工作空間",
268
+ "maxGraphNodes": "最大圖形節點數"
269
  },
270
  "propertiesView": {
271
  "editProperty": "編輯{{property}}",