自定义重排类,实现分数阈值过滤

This commit is contained in:
wanyaokun
2024-09-10 15:05:12 +08:00
parent 0bf2799acf
commit f4b1f40173
4 changed files with 82 additions and 7 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ def get_chat_engine(filters=None, params:dict=None):
react_chat_formatter = ReActChatFormatter.from_defaults(ReActChatFormatter_messages)
agentrunner = AgentRunner.from_llm(
llm=Settings.llm,
tools=tools,
react_chat_formatter=react_chat_formatter,
tools=tools,
#react_chat_formatter=react_chat_formatter,
system_prompt=system_prompt,
verbose=True,
)