trulens: "RuntimeError: cannot reuse already awaited coroutine"

I am currently using the code provided in this Colab notebook to evaluate my RAG pipeline. While running the evaluation, I encountered an issue:

  • RuntimeError: cannot reuse already awaited coroutine:

During the evaluation process, I encountered a RuntimeError with the message “cannot reuse already awaited coroutine” when executing the following code snippet:

with tru_rag as recording:
    for question in questions_500[:10]:
        answer = rag.query(question)

This error started occurring from yesterday, and I didn’t have the same problems again. Is there any possible solution?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 16 (6 by maintainers)

Most upvoted comments

@xcarlosamm @vecorro @MARUD84 @kouskouss Can you please let us know if this was fixed?

I have this issue too, downgrading the version doesn’t solve the issue.

Thanks for reporting @kouskouss - can you create a second issue and separate these? They are not related.

Yes, of course.