RetriverQueryEngine
using VectorIndexAutoRetriever
as the retriever
query_engine
created in step 1. define a QueryEngineTool
using QueryEngineTool.from(query_engine=query_engine)
.OpenAIAgent
(which is what gets built when using chat_mode = "openai") throughOpenAIAgent.from_tools( tools=[query_engine_tool], llm=llm, **kwargs, )