feat: rag

This commit is contained in:
heyong.fu
2026-05-06 11:35:10 +08:00
commit a17c65c4bc
75 changed files with 5196 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# 读取纯文本内容
def read_text_file(filename):
with open(filename, "r", encoding="utf-8") as f:
text = f.read()
return text
if __name__ == "__main__":
filename = "example/example.txt"
result = read_text_file(filename)
print(result)