You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
856 B
23 lines
856 B
6 days ago
|
import json
|
||
|
import os
|
||
|
|
||
6 days ago
|
from Tools.KG_Config import TOPIC
|
||
|
|
||
6 days ago
|
# 文件路径
|
||
6 days ago
|
file_path = rf"d:\dsWork\dsProject\dsLightRag\Topic\{TOPIC}\kv_store_doc_status.json"
|
||
6 days ago
|
|
||
|
# 读取并解析JSON文件
|
||
|
with open(file_path, 'r', encoding='utf-8') as f:
|
||
|
doc_status_data = json.load(f)
|
||
|
|
||
|
# 遍历文档状态信息
|
||
|
for doc_id, status_info in doc_status_data.items():
|
||
|
print(f"文档ID: {doc_id}")
|
||
|
print(f"状态: {status_info['status']}")
|
||
|
print(f"分块数量: {status_info['chunks_count']}")
|
||
6 days ago
|
print(f"内容摘要: {status_info['content_summary'][:100]}...") # 打印前100字符
|
||
|
print(f"内容长度: {status_info['content_length']}字符")
|
||
6 days ago
|
#print(f"创建时间: {status_info['created_at']}")
|
||
|
#print(f"更新时间: {status_info['updated_at']}")
|
||
|
#print(f"文件路径: {status_info['file_path']}")
|
||
|
print("---")
|