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