from_llm(
cls,
llm: BaseLanguageModel,
prompt: PromptTemplate | None = None,
**kwargs: Any| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | |
prompt | PromptTemplate | None | Default: None |
**kwargs | Any | Default: {} |
Load QA Eval Chain from LLM.
The base language model to use.
A prompt template containing the input_variables:
'input', 'answer' and 'result' that will be used as the prompt
for evaluation.
Defaults to PROMPT.
Additional keyword arguments.