mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-31 03:03:22 +08:00
本地知识库搜索字段修改
This commit is contained in:
parent
89b0d467ea
commit
54ffdcab8b
@ -8,7 +8,7 @@ from configs import TOOL_CONFIG
|
||||
def search_knowledgebase(query: str, database: str, config: dict):
|
||||
docs = search_docs(
|
||||
query=query,
|
||||
knowledge_base_name="samples",
|
||||
knowledge_base_name=database,
|
||||
top_k=config["top_k"],
|
||||
score_threshold=config["score_threshold"])
|
||||
context = ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user