from_llm(
cls,
llm: BaseLanguageModel,
*,
prompt: PromptTemplate | None = None,
criteria| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The LLM to use (GPT-4 recommended). |
prompt | PromptTemplate | None | Default: NoneThe prompt to use. |
criteria | CRITERIA_TYPE | str | None | Default: None |
**kwargs | Any | Default: {} |
Initialize the PairwiseStringEvalChain from an LLM.
The criteria to use.
Additional keyword arguments.