LLM Wrapper to use
Optional
llmKwargs to pass to LLM
Optional
memoryKey to use for output, defaults to text
Optional
outputOutputParser to use
Prompt object to use
Return the string type key uniquely identifying this class of chain.
Protected
_Run the core logic of this chain and add to output if desired.
Wraps _call and handles memory.
Optional
config: anyInvoke the chain with the provided input and returns the output.
Input values for the chain run.
Optional
options: anyPromise that resolves with the output of the chain run.
Format prompt with values and pass to LLM
keys to pass to prompt template
Optional
callbackManager: anyCallbackManager to use
Completion from LLM.
Static
deserializeLoad a chain from a json-like object describing it.
Static
lc_
Deprecated
This class will be removed in 1.0.0. Use the LangChain Expression Language (LCEL) instead. See the example below for how to use LCEL with the LLMChain class:
Chain to run queries against LLMs.
Example