Merge pull request #98 from JavieHush/main
Fix encoding error when running demo in some occasions
This commit is contained in:
commit
53a1ee9b61
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue