langchain.readthedocs.io/en/latest/modules/chains/getting_started.html
2 Users
0 Comments
6 Highlights
0 Notes
Tags
Top Highlights
from langchain.chains import SimpleSequentialChain overall_chain = SimpleSequentialChain(chains=[chain, chain_two], verbose=True)
def _call(self, inputs: Dict[str, str]) -> Dict[str, str]: output_1 = self.chain_1.run(inputs) output_2 = self.chain_2.run(inputs) return {'concat_output': output_1 + output_2}
In this tutorial, we will cover: Using a simple LLM chain Creating sequential chains Creating a custom chain
Chains allow us to combine multiple components together to create a single, coherent application.
The LLMChain is a simple chain that takes in a prompt template, formats it with the user input and returns the response from an LLM.
We can do this using sequential chains, which are chains that execute their links in a predefined order.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded peopleβs learning.