Fix 知识库无法上载,NLTK_DATA_PATH路径错误 (#236)

This commit is contained in:
Bob Chang 2023-05-05 08:21:39 +08:00 committed by GitHub
parent fc7197fe5f
commit 51d0b7f855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,4 +62,4 @@ LLM_HISTORY_LEN = 3
# return top-k text chunk from vector store
VECTOR_SEARCH_TOP_K = 5
NLTK_DATA_PATH = os.path.join(os.path.dirname(__file__), "nltk_data")
NLTK_DATA_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "nltk_data")