Initialize the LabeledScoreStringEvalChain from an LLM.
from_llm(
cls,
llm: BaseLanguageModel,
*,
prompt: PromptTemplate | None = None,
criteria: CRITERIA_TYPE | str | None = None,
normalize_by: float | None = None,
**kwargs: Any = {}
) -> LabeledScoreStringEvalChain| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The LLM to use. |
prompt | PromptTemplate | None | Default: NoneThe prompt to use. |
criteria | CRITERIA_TYPE | str | None | Default: NoneThe criteria to use. |
normalize_by | float | None | Default: NoneThe value to normalize the score by. |
**kwargs | Any | Default: {}Additional keyword arguments. |