mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-01 11:53:24 +08:00
parent
e941310775
commit
a84221cecc
@ -724,6 +724,7 @@ def update_search_local_knowledgebase_tool():
|
||||
search_local_knowledgebase_tool=tools_registry._TOOLS_REGISTRY.get("search_local_knowledgebase")
|
||||
if search_local_knowledgebase_tool:
|
||||
search_local_knowledgebase_tool.description = " ".join(re.split(r"\n+\s*", template_knowledge))
|
||||
search_local_knowledgebase_tool.args["database"]["choices"]=[kb.kb_name for kb in kbs]
|
||||
|
||||
|
||||
def get_tool(name: str = None) -> Union[BaseTool, Dict[str, BaseTool]]:
|
||||
|
||||
@ -106,7 +106,7 @@ def clear_conv(name: str = None):
|
||||
chat_box.reset_history(name=name or None)
|
||||
|
||||
|
||||
@st.cache_data
|
||||
# @st.cache_data
|
||||
def list_tools(_api: ApiRequest):
|
||||
return _api.list_tools()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user