自定义重排类,实现分数阈值过滤
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user