From 4cd8d0e97c6d605f6299bcc46b4473aed400486e Mon Sep 17 00:00:00 2001 From: ChillWay <53417050+BestLemoon@users.noreply.github.com> Date: Wed, 29 May 2024 22:11:28 +0800 Subject: [PATCH] Update test_different_splitter.py (#3887) fix path error --- tests/custom_splitter/test_different_splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/custom_splitter/test_different_splitter.py b/tests/custom_splitter/test_different_splitter.py index 2111bae1..b521d0c2 100644 --- a/tests/custom_splitter/test_different_splitter.py +++ b/tests/custom_splitter/test_different_splitter.py @@ -15,7 +15,7 @@ def text(splitter_name): from langchain import document_loaders # 使用DocumentLoader读取文件 - filepath = "../../knowledge_base/samples/content/test.txt" + filepath = "../../knowledge_base/samples/content/test_files/test.txt" loader = document_loaders.UnstructuredFileLoader(filepath, autodetect_encoding=True) docs = loader.load() text_splitter = make_text_splitter(splitter_name, CHUNK_SIZE, OVERLAP_SIZE)