From dd26f552db0194c3e59e4a4729cd8a3d00ab5fc3 Mon Sep 17 00:00:00 2001 From: imClumsyPanda Date: Wed, 9 Aug 2023 23:39:05 +0800 Subject: [PATCH] update model_config.py.example --- configs/model_config.py.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/model_config.py.example b/configs/model_config.py.example index 0d7237a..75ecacc 100644 --- a/configs/model_config.py.example +++ b/configs/model_config.py.example @@ -104,6 +104,12 @@ SQLALCHEMY_DATABASE_URI = f"sqlite:///{DB_ROOT_PATH}" # 缓存向量库数量 CACHED_VS_NUM = 1 +# 知识库中单段文本长度 +CHUNK_SIZE = 250 + +# 知识库中相邻文本重合长度 +OVERLAP_SIZE = 50 + # 知识库匹配向量数量 VECTOR_SEARCH_TOP_K = 5