In addition to a list query_engine_tools that are using RAG, I also have 20-30 python functions that implement complex logics to answer user query to a chatbot. I am not 100% clear how to put these together. One thing I found in documentation was using FunctionTool. Can I send a list of FunctionTool and QueryEngineTool to RouterQueryEngine ? Any examples?
i m still very new to Llamaindex... just reading all the help docs and starting to build things...
I read the code you shared, one way could be to define self._query_engine in Functool and define query function in Functool which jsut sends the response by calling the function set in constructor