You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def load_storage(file_name) -> Union[DataBase, None]:
if not os.path.exists(file_name):
return None
with open(file_name, encoding='utf-8') as f:
data = json.load(f)
data["matrix"] = buffer_string_to_array(data["matrix"]).reshape(
-1, data["embedding_dim"]
)
logger.info(f"Load {data['matrix'].shape} data")
return data
之后似乎就可以了
第一次写issue,语言不周请见谅
The text was updated successfully, but these errors were encountered:
您好!
当我在使用LightRag时,发现以下报错:
这会在使用中文时发生
这可能是open函数在自动识别文件编码类型时将中文错误识别为gbk编码导致的
将dbs文件下的load_storage函数修改如下
之后似乎就可以了
第一次写issue,语言不周请见谅
The text was updated successfully, but these errors were encountered: