LLMs Tutorial — How To Use LangChain with Zapier

Gao Dalie (高達烈)
Automation Architech
5 min readApr 3, 2023

--

👨🏾‍💻 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:

  1. Generate a prompt from a template
  2. 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.

--

--

Gao Dalie (高達烈)
Automation Architech

Learn AI Agent, LLMs, RAG & Generative AI See everything I have to offer at the link below: https://linktr.ee/GaoDalie_AI