Hi there, I am following this tutorial to have a Retrieval-Augmented Agent,
https://docs.llamaindex.ai/en/stable/examples/agent/openai_agent_retrieval/However I am wondering whether the async query works here? Assume that I want the Agent to use 5 tools.
obj_index = ObjectIndex.from_objects(
query_engine_tools,
index_cls=VectorStoreIndex,
)
agent = OpenAIAgent.from_tools(
llm=self.llm_azure_gpt35,
tool_retriever=obj_index.as_retriever(similarity_top_k=5),
verbose=True,
)
response = await agent.aquery("Use 5 tools to plan the route")
From my observation on the progress, I feel the Agent uses the tools one by one, which is time-consuming.