add new config variable to config example

This commit is contained in:
liunux4odoo 2023-08-04 09:16:28 +08:00
parent 82aa805bf3
commit 9a18218293
1 changed files with 9 additions and 0 deletions

View File

@ -239,6 +239,15 @@ if not os.path.exists(LOG_PATH):
# 知识库默认存储路径 # 知识库默认存储路径
KB_ROOT_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "knowledge_base") KB_ROOT_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "knowledge_base")
# 缓存向量库数量
CACHED_VS_NUM = 1
# 知识库匹配向量数量
VECTOR_SEARCH_TOP_K = 5
# 搜索引擎匹配结题数量
SEARCH_ENGINE_TOP_K = 5
# nltk 模型存储路径 # nltk 模型存储路径
NLTK_DATA_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "nltk_data") NLTK_DATA_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "nltk_data")