fixed types

This commit is contained in:
Lorenze Jay
2024-12-03 10:12:37 -08:00
parent 543ebbf3a4
commit aab05388d5
5 changed files with 32 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ class JSONKnowledgeSource(BaseFileKnowledgeSource):
content: Dict[Path, str] = {}
for path in paths:
path = self.convert_to_path(path)
with open(path, "r", encoding="utf-8") as json_file:
data = json.load(json_file)
content[path] = self._json_to_text(data)