"prompt.json",      "llm_path": "llm.json",      "output_key": "text",      "_type": "llm_chain"    }We can then load it in the same way:chain = load_chain("llm_chain_separate.json")chain.run("whats 2 + 2")            > Entering new LLMChain chain...    Prompt after formatting:    Question: whats 2 + 2        Answer: Let's think step by step.        > Finished chain.    ' 2 + 2 = 4'PreviousUsing OpenAI functionsNextFoundationalSaving a chain to diskLoading a chain from diskSaving components separatelyCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This notebook covers how to serialize chains to and from disk. The serialization format we use is JSON or YAML. Currently, only some chains support this type of serialization. We will grow the number of supported chains over time.
This notebook covers how to serialize chains to and from disk. The serialization format we use is JSON or YAML. Currently, only some chains support this type of serialization. We will grow the number of supported chains over time. ->: "prompt.json",      "llm_path": "llm.json",      "output_key": "text",      "_type": "llm_chain"    }We can then load it in the same way:chain = load_chain("llm_chain_separate.json")chain.run("whats 2 + 2")            > Entering new LLMChain chain...    Prompt after formatting:    Question: whats 2 + 2        Answer: Let's think step by step.        > Finished chain.    ' 2 + 2 = 4'PreviousUsing OpenAI functionsNextFoundationalSaving a chain to diskLoading a chain from diskSaving components separatelyCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.