mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-05 03:18:41 +00:00
set encoding as utf-8 when reading ./book.txt in examples
This commit is contained in:
parent
ab8d67c602
commit
a097b48170
@ -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…
x
Reference in New Issue
Block a user