LLMs Tutorial — How To Use LangChain with Zapier
👨🏾💻 GitHub ⭐️| 🐦 Twitter | 📹 Linkedin |🕸️Website | 😃UpWork
What is LangChain?
Langchain is an open-source library that gives developers the ability to create applications powered by large module languages (LLMs). LangChain can be used to develop advanced chatbots, generative question-answers from custom data sources, summarization, and so much more.
In this tutorial, the main concepts we will focus on are Agents and Chains.
Chain
A chain is simply a string of LLM calls that connect their inputs to their outputs. This allows the LLMs to essentially communicate with each other. For simplicity's sake, we can think of each time an LLM runs as an “execution”. A great example is provided in the LangChain documentation where they use 2 LLM executions in sequence to perform two tasks:
- Generate a prompt from a template
- Pass this completed prompt to another LLM to generate a response
Agent
What happens if you have multiple tasks lined up, but you want the LLM to “decide” and dynamically select a task to complete based on the input? This is where the agent comes in.