query_engine = vector_index.as_query_engine(llm=llm) response = query_engine.query( "What does the author do to live?" ) print(response)
evaluator = FaithfulnessEvaluator(llm=llm) eval_result = evaluator.evaluate_response(response=response) print(str(eval_result.passing))
RuntimeError: asyncio.run() cannot be called from a running event loop