# define top-level retriever vector_index = VectorStoreIndex( objects=objects, ) query_engine = vector_index.as_query_engine(similarity_top_k=2, verbose=True)
tool = QueryEngineTool.from_defaults(query_engine, name="...", description="...") sub_question = SubQuestionQueryEngine.from_defaults([tool], llm=llm, verbose=True)