mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-19 13:23:16 +08:00
Fix(File RAG): update kb_doc_api.py
This commit is contained in:
parent
1987063a76
commit
360fc01266
@ -28,7 +28,7 @@ def search_docs(
|
||||
description="知识库匹配相关度阈值,取值范围在0-1之间,"
|
||||
"SCORE越小,相关度越高,"
|
||||
"取到1相当于不筛选,建议设置在0.5左右",
|
||||
ge=0, le=1),
|
||||
ge=0.0, le=1.0),
|
||||
file_name: str = Body("", description="文件名称,支持 sql 通配符"),
|
||||
metadata: dict = Body({}, description="根据 metadata 进行过滤,仅支持一级键"),
|
||||
) -> List[Dict]:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user