STORY
What is LangChain?
AUTHOR
Joined 2022.06.04
DATE
VOTES
sats
COMMENTS

What is LangChain?

So since I've been recently looking more into the available AI tools & frameworks, I came across probably one of the most famous ones, which is LangChain.

So what is LangChain??

LangChain is a framework that makes it easy to build applications using large language models (LLMs).

It provides a standard interface for interacting with different LLMs, as well as a big number of useful tools/classes/functions that can help developers build AI apps more quickly.

So what is LangChain exactly?

It can be used to build any kind of AI apps.

Examples: Chatbots, Summarizing text, generating text, analyzing text, creating agents, and almost any kind of AI app you can think of.

What's the difference between LangChain & OpenAI API/library??

It's two different things.

LangChain doesn't have any kind of LLMs built in, it makes use of other LLMs like the ones provided by OpenAI API.

But it gives you more functionality on top of them that are not provided by OpenAI API like: Keeping a memory of the chat, formatting prompts, calling external tools,...etc.

So Should you use LangChain if you are building an AI app??

I think if the AI flow of your app isn't a simple one & involves multiple steps, then you will most definitely benefit from it.

Links

Python package: https://python.langchain.com
JavaScript package: https://js.langchain.com