set encoding as utf-8 when reading ./book.txt in examples

This commit is contained in:
zhangjiawei
2024-10-22 16:01:40 +08:00
parent 0174553c86
commit 6412400593
4 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ rag = LightRAG(
)
with open("./book.txt") as f:
with open("./book.txt", "r", encoding="utf-8") as f:
rag.insert(f.read())
# Perform naive search

View File

@@ -21,7 +21,7 @@ rag = LightRAG(
)
with open("./book.txt") as f:
with open("./book.txt", "r", encoding="utf-8") as f:
rag.insert(f.read())
# Perform naive search

View File

@@ -55,7 +55,7 @@ rag = LightRAG(
)
with open("./book.txt") as f:
with open("./book.txt", "r", encoding="utf-8") as f:
rag.insert(f.read())
# Perform naive search

View File

@@ -15,7 +15,7 @@ rag = LightRAG(
)
with open("./book.txt") as f:
with open("./book.txt", "r", encoding="utf-8") as f:
rag.insert(f.read())
# Perform naive search