Find answers from the community

Home
Members
matter of factly
m
matter of factly
Offline, last seen 4 months ago
Joined September 25, 2024
Hello. The following codes give me the answer
Plain Text
query_engine = vector_index.as_query_engine(llm=llm)
response = query_engine.query(
    "What does the author do to live?"
)
print(response)

But when I run these codes:
Plain Text
evaluator = FaithfulnessEvaluator(llm=llm)
eval_result = evaluator.evaluate_response(response=response)
print(str(eval_result.passing))

I am getting errors idk why. These are taken directly from the doc by the way.
Error:
Plain Text
RuntimeError: asyncio.run() cannot be called from a running event loop
3 comments
m
L
why does it take 15-20 seconds to get an answer when I use ollama(llama3) with llama_index?
4 comments
L
m