Dummy LLM Chain#
A dummy LLMChain for when you need to provide an LLMChain but don’t care for a real one.
This is similar to the Fake chain, except that it errors out on attempted usage. This is to allow you to ensure that this dummy chain is truly not being used.
[1]:
from langchain_contrib.chains import DummyLLMChain
try:
chain = DummyLLMChain()
chain({"random": "input"})
except Exception as e:
print(f"Error: {e}")
Error: You're using the dummy prompt template.