mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-06 23:15:53 +08:00
配置路径问题
This commit is contained in:
parent
84bafe9723
commit
6019af4f33
@ -1,11 +1,13 @@
|
|||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# chatchat 项目根目录
|
import sys
|
||||||
CHATCHAT_ROOT = str(Path(__file__).absolute().parent.parent)
|
sys.path.append(str(Path(__file__).parent))
|
||||||
|
|
||||||
|
from _basic_config import config_workspace
|
||||||
|
|
||||||
# 用户数据根目录
|
# 用户数据根目录
|
||||||
DATA_PATH = os.path.join(CHATCHAT_ROOT, "data")
|
DATA_PATH = config_workspace.get_config().DATA_PATH
|
||||||
|
|
||||||
# 默认使用的知识库
|
# 默认使用的知识库
|
||||||
DEFAULT_KNOWLEDGE_BASE = "samples"
|
DEFAULT_KNOWLEDGE_BASE = "samples"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user