medium severityTruLens feedback functions (e.g., groundedness, relevance)
concurrent.futures._base.TimeoutError after 600s during feedback computation, e.g., in loops with app recording: "Run of run in <Thread(TP.submit with debug timeout_*, ...)> timed out after 600.0 second(s)." Often when using slow LLMs like Ollama/large models.
Root cause
TruLens executes feedback functions in separate threads via ThreadPool (TP), with each having a 600s timeout (trulens.core.utils.threading.TP.DEBUG_TIMEOUT). Slow LLM responses (e.g., large models, external APIs) exceed this, raising concurrent.futures._base.TimeoutError when awaiting future.result().
TruLensfeedbackfunctiontimeoutconcurrent.futures.TimeoutErrorTP.DEBUG_TIMEOUTthreading