Engineering Prompts

Engineering Prompts

Share this post

Engineering Prompts
Engineering Prompts
Frameworks to Build LLM Applications
Copy link
Facebook
Email
Notes
More

Frameworks to Build LLM Applications

LangChain is a very powerful framework for building apps with large language models. This post is a conceptual overview on why frameworks like LangChain are the next step in the AI (r)evolution.

Marcel Salathé's avatar
Marcel Salathé
Jun 05, 2023
∙ Paid

Share this post

Engineering Prompts
Engineering Prompts
Frameworks to Build LLM Applications
Copy link
Facebook
Email
Notes
More
Share

As a reader of this Substack, you are well aware of just how powerful large language models (LLMs) are. You also know that how you formulate your prompt can have quite dramatic consequences on the quality of the LLM’s results.

Modifying the prompt - sometimes only slightly - to get a better result from the LLM was the original idea behind the term “prompt engineering”. However, this is a rather limited view of the term.

A better way to think of prompt engineering is to use the power of LLMs to define multiple aspects of your application, including formulating the next prompt, managing the conversation memory, and so on. After all, an LLM, a colossal mass of billions of parameters, can be queried at will with your prompts. You can then use the LLM's results to inform your application about the next steps.

All things being equal, the better the prompt, the better the response. A powerful LLM-based application (left) will depend as much on the LLM (right) as on its ability to use the LLM’s response, and other information, to improve subsequent prompts.

LangChain is a framework that helps developers build applications based on LLMs. It’s clear that any LLM application will use such a framework. While multiple frameworks are emerging, LangChain took the world by storm and is currently regarded as the leader in this field.

In this post, I’ll walk you through the core ideas of LangChain. I won’t use any code - this is not a developer post, but a piece for those who want to understand how a framework like LangChain works at the conceptual level, and why these frameworks are considered the next step for any AI application.

Keep reading with a 7-day free trial

Subscribe to Engineering Prompts to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Marcel Salathé
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More