Log a numeric score to LangSmith.
score(
self,
score: Union[float, int, bool],
*,
key: str = 'score',
source_run_id: Optional[ls_client.ID_TYPE] = None,
comment: Optional[str] = None
) -> _MatcherExample:
expect.score(0.8) # doctest: +ELLIPSIS
<langsmith._expect._Matcher object at ...>
expect.score(0.8, key="similarity").to_be_greater_than(0.7)