Skip to content

Commit

Permalink
Str Evaluator Mapper (langchain-ai#12401)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored and xieqihui committed Nov 21, 2023
1 parent 645ff3b commit 7b4d10e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def map(self, example: Example) -> Dict[str, str]:
return {
"reference": self.serialize_chat_messages([output])
if isinstance(output, dict) and output.get("type") and output.get("data")
else str(output)
else output
}

def __call__(self, example: Example) -> Dict[str, str]:
Expand Down

0 comments on commit 7b4d10e

Please sign in to comment.