Code: Select all
~RunnableSequence, e.g.,
Bitte geben Sie mir Arbeitscode dafür.
Code: Select all
`from langchain.chains import LLMChain
def _create_chain(self, template: str) -> LLMChain:
prompt = ChatPromptTemplate.from_template(template)
return LLMChain(llm=self.llm, prompt=prompt)`