Closed shresthakamal closed 8 months ago
Can be solved using:
if grade == "yes":
print("---DECISION: DOCS RELEVANT---")
return "yes"
else:
print("---DECISION: DOCS NOT RELEVANT---")
print(score[0].binary_score)
return "no"
fixed! thanks!
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
AttributeError: 'list' object has no attribute 'binary_score'
Description
If the grader grades any document as not relevant, and scores "no", printing the score is not correct
System Info
langchain==0.1.10 langchain-community==0.0.25 langchain-core==0.1.28 langchain-openai==0.0.8 langchain-text-splitters==0.0.1 langchainhub==0.1.14