Issue with Async Evals and Missing Template Variable in Code
WARNING 2024-08-19 17:39:58,179 executors Async evals execution is not supported in non-main threads. Falling back to sync. Retries exhausted after 1 attempts: Missing template variable: 'input' llm_classify |
data = {
'query': [query], # The user's query
'response': [answer['answer']], # The generated response
# Add any other relevant columns as needed
}
df = pd.DataFrame(data)
# Run Hallucination Detection with Phoenix
hallucination_classifications = llm_classify(
dataframe=df,
template=HALLUCINATION_PROMPT_TEMPLATE,
model=model,
rails=rails,
provide_explanation=True # Optional: set to False if not needed
)RunLLM what is the issue with the code ?
