MCPcopy
hub / github.com/HKUDS/LightRAG / getAggregateCount

Function getAggregateCount

lightrag_webui/src/features/DocumentManager.tsx:73–74  ·  view source on GitHub ↗
(counts: Record<string, number>, ...keys: string[])

Source from the content-addressed store, hash-verified

71}
72
73const getAggregateCount = (counts: Record<string, number>, ...keys: string[]): number =>
74 keys.reduce((total, key) => total + getCountValue(counts, key), 0)
75
76const hasActiveDocumentsStatus = (counts: Record<string, number>): boolean =>
77 getAggregateCount(counts, 'PROCESSING', 'processing', 'PARSING', 'parsing', 'ANALYZING', 'analyzing') > 0 ||

Callers 1

hasActiveDocumentsStatusFunction · 0.85

Calls 2

getCountValueFunction · 0.85
reduceMethod · 0.45

Tested by

no test coverage detected