From 7dc44249eb5e168571882b2436b17c73e211c47d Mon Sep 17 00:00:00 2001 From: imClumsyPanda Date: Mon, 17 Jul 2023 21:49:05 +0800 Subject: [PATCH] update model_config.py --- configs/model_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/model_config.py b/configs/model_config.py index 2f52c9c..8aace42 100644 --- a/configs/model_config.py +++ b/configs/model_config.py @@ -231,8 +231,8 @@ LLM_HISTORY_LEN = 3 # 知识库检索时返回的匹配内容条数 VECTOR_SEARCH_TOP_K = 5 -# 知识检索内容相关度 Score, 数值范围约为0-1100,如果为0,则不生效,经测试设置为小于500时,匹配结果更精准 -VECTOR_SEARCH_SCORE_THRESHOLD = 390 +# 知识检索内容相关度 Score, 数值范围约为0-1100,如果为0,则不生效,建议设置为500左右,经测试设置为小于500时,匹配结果更精准 +VECTOR_SEARCH_SCORE_THRESHOLD = 500 NLTK_DATA_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "nltk_data")