Add Citation pipeline (#78)
* add rerankers in retrieving pipeline * update example MVP pipeline * add citation pipeline and function call interface * change return type of QA and AgentPipeline to Document
This commit is contained in:
committed by
GitHub
parent
f8b8d86d4e
commit
cc1e75b3c6
@@ -103,7 +103,8 @@ class BaseTool(BaseComponent):
|
||||
# TODO (verbose_): Add logging
|
||||
try:
|
||||
tool_args, tool_kwargs = self._to_args_and_kwargs(parsed_input)
|
||||
observation = self._run_tool(*tool_args, **tool_kwargs)
|
||||
call_kwargs = {**kwargs, **tool_kwargs}
|
||||
observation = self._run_tool(*tool_args, **call_kwargs)
|
||||
except ToolException as e:
|
||||
observation = self._handle_tool_error(e)
|
||||
return observation
|
||||
|
Reference in New Issue
Block a user