query_engine_base = RetrieverQueryEngine.from_args(retriever, service_context=service_context) response = query_engine_base.query(query)
retriever = index.as_retriever(similarity_top_k = 5) query_engine_base = RetrieverQueryEngine.from_args(retriever, service_context=service_context) response = query_engine_base.query(query)