From a054f7be9cb6b87b0f6cf6e0e94fc708e0e119bc Mon Sep 17 00:00:00 2001 From: Deven Patel Date: Wed, 1 Nov 2023 22:27:40 -0700 Subject: [PATCH] [Data loader] Make json data loader work for other languages (#897) Co-authored-by: Deven Patel --- embedchain/loaders/json.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embedchain/loaders/json.py b/embedchain/loaders/json.py index a76d0a0c..9ecc77f1 100644 --- a/embedchain/loaders/json.py +++ b/embedchain/loaders/json.py @@ -34,7 +34,7 @@ class JSONLoader(BaseLoader): # Load json data from various sources. TODO: add support for dictionary if os.path.isfile(content): - with open(content, "r") as json_file: + with open(content, "r", encoding="utf-8") as json_file: json_data = json.load(json_file) elif re.match(VALID_URL_PATTERN, content): response = requests.get(content) diff --git a/pyproject.toml b/pyproject.toml index 8ec7e2ac..cf080f80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "embedchain" -version = "0.0.89" +version = "0.0.90" description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data" authors = [ "Taranjeet Singh ",