mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 08:01:46 +08:00
The LightRAG index probe reported doc_count=None for every native-layout index. _lightrag_doc_count read kv_store_doc_status.json from the version root, but native LightRAG keeps its KV stores under a deeptutor_<hash> workspace subdir; every other reader (has_output, failure_summary, document_error) resolves that subdir via storage._store_root first. Move the count into the storage module as a public doc_count() that resolves the store root the same way, and have index_probe delegate to it. A ready native index now reports its real count instead of None, so the KB version list, last_indexed_count and linked-folder probe stop falling back to a raw-file guess. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>