修复自定义JSON文件加载支持BUG

This commit is contained in:
2024-08-19 09:06:12 +08:00
parent 176b49983a
commit 3e2bdea196
+1 -1
View File
@@ -43,7 +43,7 @@ def llama_parse_extractor() -> Dict[str, LlamaParse]:
return {file_type: parser for file_type in SUPPORTED_FILE_TYPES} return {file_type: parser for file_type in SUPPORTED_FILE_TYPES}
def llama_local_extractor() -> Dict[str, BaseReader]: def llama_local_extractor() -> Dict[str, BaseReader]:
return {"json" : JSONReader} return {".json" : JSONReader(clean_json=False,levels_back=0)}
def get_file_documents(config: FileLoaderConfig): def get_file_documents(config: FileLoaderConfig):