Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[Data loader] Make json data loader work for other languages (#897)

Deven Patela054f7be9cb6
diff --git a/embedchain/loaders/json.py b/embedchain/loaders/json.py
index a76d0a0c3..9ecc77f1e 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 8ec7e2ac8..cf080f808 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 <[email protected]>",