Is Langchain BAD for AI App Devs?

1littlecoder · Intermediate ·🛠️ AI Tools & Apps ·3y ago

Key Takeaways

The video discusses the limitations and criticisms of Langchain, a popular Python library for building LLM apps, including its over-bloated nature, lack of clear performance benefits, and difficulties with customization and debugging, with references to discussions on Hacker News and examples from Perplexity and other tools like Sentence Transformers and Hugging Face.

Full Transcript

line chain has been one of the most popular python libraries to build llm apps but recently it's been in a big soup with a lot of people saying that Lang chain is over bloated and in this video we are going to explore what is the problem with Lang chain and what is the situation in which you should ideally use Lang chain and maybe you should not use lamp chain lamp chain like to be honest like Langston is an amazing Library if you want to get started with llm applications if you want to build AI applications but then there are certain places where the launch and Fanboys overuse Lang chain when they shouldn't have already used launching so we start with what is the problem with land chain so the problem was highlighted by this Reddit user link chain is pointless as the post of the Reddit and starts with the being a rapper so embeddings in launching is a do nothing wrapper for sentence Transformers and its sentence Transformers is an open source library and if you want to use embedding that is a problem the problem is also with the Lang chains readme which is like a grandiose and vague and one of the biggest problems that they have highlighted in this particular user is that Lang chain is highly modularized and it reports a lot of things when you import the data type is not standard and with that if we move on to the next issue that that has been pointed out by mini maxer who is one of the most popular data science voices I would say but any maxer wanted to write a blog post called the problem with the land chain but did not do it because Minimax didn't want to be that guy who criticizes a open source project in good faith but leaving that aside leaving the criticism aside and if you want to look at Lang chain with just a neutral point of view you can see the points that Minimax has raised is Lang chain encourages to lock in for little developer benefit as noted by the original poster the Reddit post there is no inherent advantage in using them and some have some optimal implementations the current implementations of react workflow and the prompt engineering are based on instant GPT which is like text dobbyency 003 and are extremely out of date when you compare it with chat GPT which is GPT 3.5 turbo or GPT for the latest API from open AI debugging a long chain error is near impossible even with verbose is equal to true even when you enable verbose it still is very important very difficult if you need anything out of the outside the workflows in the documentation it is extremely difficult to hack with even custom agents so Lang chain works fine with the ecosystem that it is wrapping but when you want to do anything outside of that it is extremely difficult and that could be also a problem the extreme popularity of the long chain is wiping the entire AI ecosystem around the workflows the recent releases by hugging face and openai re-contextualize themselves around Lang chain it's just magical Aid to the point of hurting development and crude Clarity when you have a lot of abstractions of this it's very hard to understand what is happening and if you have to understand what is happening you have to really dive into the code base to understand what is happening that is something that not a lot of developer would want to do and that's exactly the point here like if you are a developer who can get into the code base of Langston and understand it probably you shouldn't use lamp chain but if you are not somebody who can get into the code maybe that's where you can use Lang chain because you don't get into the code part in itself arvind srinivas who is the co-founder or founder of perplexity which is just like chat GPT with internet so also mentioned that they don't use land chain so perplexity does not use Lang chain that's one thing and we have never and will likely never use lime chain and then the reason that they have highlighted about why they don't want to use and channel why they are not going to use land chain starts from the sub optimality of the framework in itself models changing quite rapidly and because models change quite rapidly everything needs to be adapted or changed quickly debugging is quite important so when you have a production level software sometimes things go wrong or most of the time things were wrong and when things go wrong you need to be able to debug them in a fast and agile manner the problem is also with customization and ultimately using long chain has not given them any clear performance or abstraction benefits when you do not use Lang chain also and that's that's one of the reasons why they are not using Lang chain but again going back to our same point if you are that developer who can actually understand things Deep dive then probably you do not need land share and then multiple voices are voiced out the same thing for example Jim fan said that hackability is the number one important feature to Cutting Edge AI research and products libraries that argument llms with Vector dbe search India Predator are more useful than wrappers around them so Lang chain is fantastic for Education uh and will established workflows but that work out of the box but you are better off building your own pipeline if you do not want to use slime chain because especially if you're going to build production level pipelines maybe land chain is not necessarily or maybe lunch and should not be something that you should rely on because it again does a lot of things on top of a lot of libraries that it cannot ultimately control and that's one of the problems that you would face like for me especially when I make YouTube videos I make on top of lot of Open Source libraries and sometimes those libraries make changes and then my viewers comment comment that this function has been changed can you update the course which is not necessarily possible for me to do it so the same problem exists on long chain as well because long chain is built on top of lot of these libraries whenever any small changer and of course this is a very fast moving industry and a lot of changes happen most reminds of tensorflow which is like again like a bulk of lot of these wrappers and libraries all together and that's one of the reasons Community never accepted tensorflow as one stop solution and then they always fell back with pytosh which provided them flexibility and lot of these Deep dive access like you can dive into the code and build anything that you want ultimately this is not an issue because the founder of long chain hydration Chase is quite open about the feedback that they are getting and also acknowledge the fact that a lot of things to have to be Rewritten and that's a good thing for the community especially when you're sharing comments with good faith so let's see if Lang Chen will get transformed or not because they've raised a huge amount of funding recently and they are also one of the poster boys of the modern llm world but whether Lang chain gets some change whether langshan doesn't get some change if you ask me question personally if you should use long chain or not the answer is quite simple if you are new to the llm world if you are new to the AI world I don't think there is any harm in using Lang chain like if you want to build a quick and crappy product or project I think Lang chain is still one of the the easiest way that you can get started with in fact like much easier would be to use Lama index but if you are trying to build or move the same code to a production level code maybe that is the time that you should start reconsidering your entire Pipeline and what kind of technical debt that you want to leave behind and maybe at that time Lang chain is probably not a good solution for you to go with because now you have to fix a lot of things in like your pipeline to work efficiently and also for your pipeline to have the ability to change things when things change under the hood overall I love Lang Chen I have been a strong advocate of long chain but this problem exists and that's why I wanted to make this video if you have faced a similar problem opinion about Lang chain please let me know in the comment section I would like to hear from you

Original Description

This video discusses about the recent social media blast on Langchain - an LLM framework / library to build AI apps. This video is a summary and a personal take of all the discussion around langchain References: 1. Langchain is pointless HN Thread - https://news.ycombinator.com/item?id=36645575 2. Langchain is pointless Reddit - https://old.reddit.com/r/LangChain/comments/13fcw36/langchain_is_pointless/ 3. The problem with Langchain by minimaxir - https://twitter.com/minimaxir/status/1677773088484909057 4. Perplexity ai does not use Langchain - https://twitter.com/AravSrinivas/status/1677884199183994881 5. Mckay Wrigley's taken on Why Langchain is bad - https://twitter.com/mckaywrigley/status/1677812146925895680 ❤️ If you want to support the channel ❤️ Support here: Patreon - https://www.patreon.com/1littlecoder/ Ko-Fi - https://ko-fi.com/1littlecoder
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from 1littlecoder · 1littlecoder · 0 of 60

← Previous Next →
1 How to create your Free Data Science Blog on Github with Fastpages from Fastai
How to create your Free Data Science Blog on Github with Fastpages from Fastai
1littlecoder
2 Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
1littlecoder
3 Create your first Data Science Web App using R Shiny
Create your first Data Science Web App using R Shiny
1littlecoder
4 How to create a Reproducible Example in R using reprex
How to create a Reproducible Example in R using reprex
1littlecoder
5 No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
1littlecoder
6 Scrape HTML Table using rvest and Process them for insights using tidyverse in R
Scrape HTML Table using rvest and Process them for insights using tidyverse in R
1littlecoder
7 Google Teachable Machine Learning Build No Code AI solution
Google Teachable Machine Learning Build No Code AI solution
1littlecoder
8 Create meaningful fake tidy datasets in R using fakir [#rstats Package]
Create meaningful fake tidy datasets in R using fakir [#rstats Package]
1littlecoder
9 How to enable using R Programming with Visual Studio VS Code
How to enable using R Programming with Visual Studio VS Code
1littlecoder
10 Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
1littlecoder
11 Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
1littlecoder
12 Intro to Google Colab - How to use Colab
Intro to Google Colab - How to use Colab
1littlecoder
13 Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
1littlecoder
14 Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
1littlecoder
15 Do you want a career in Data Science - Tamil Webinar
Do you want a career in Data Science - Tamil Webinar
1littlecoder
16 Android Smartphone Analysis in R [Live Coding Screencast]
Android Smartphone Analysis in R [Live Coding Screencast]
1littlecoder
17 Programmatically create Images, Memes, Watermarks using Python with imgmaker
Programmatically create Images, Memes, Watermarks using Python with imgmaker
1littlecoder
18 Kaggle Walkthrough to get you started with Data Science - Webinar
Kaggle Walkthrough to get you started with Data Science - Webinar
1littlecoder
19 Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
1littlecoder
20 Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
1littlecoder
21 Excel to R - Pivot + Bar Chart in Excel  & R using tidyverse [Live Coding]
Excel to R - Pivot + Bar Chart in Excel & R using tidyverse [Live Coding]
1littlecoder
22 Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
1littlecoder
23 5 websites to get Free Real-World Datasets for Data Science/ML Projects
5 websites to get Free Real-World Datasets for Data Science/ML Projects
1littlecoder
24 Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
1littlecoder
25 Correlation-alternative PPS (Predictive Power Score) Python Package Demo
Correlation-alternative PPS (Predictive Power Score) Python Package Demo
1littlecoder
26 Automated Website Screenshots in R using {webshot}
Automated Website Screenshots in R using {webshot}
1littlecoder
27 Installing Custom RStudio Theme (Synthwave85)
Installing Custom RStudio Theme (Synthwave85)
1littlecoder
28 Analyse Google Trends Search Data in R using {gtrendsR}
Analyse Google Trends Search Data in R using {gtrendsR}
1littlecoder
29 3 Tips to ask question on Stack Overflow the right way to get answers
3 Tips to ask question on Stack Overflow the right way to get answers
1littlecoder
30 Learn Data Science with R - Mini Projects - Web Scraping Zomato
Learn Data Science with R - Mini Projects - Web Scraping Zomato
1littlecoder
31 Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
1littlecoder
32 GET Hackernews Front Page Results using REST API in R
GET Hackernews Front Page Results using REST API in R
1littlecoder
33 Quickly deploy ML WebApps from Google Colab using ngrok
Quickly deploy ML WebApps from Google Colab using ngrok
1littlecoder
34 Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
1littlecoder
35 Plotly Interactive Plots as Pandas Plotting Backend df.plot()
Plotly Interactive Plots as Pandas Plotting Backend df.plot()
1littlecoder
36 Stack Overflow Developer Survey 2020 Highlights for New Programmers
Stack Overflow Developer Survey 2020 Highlights for New Programmers
1littlecoder
37 Matplotlib Animation Charts in Python using Celluloid
Matplotlib Animation Charts in Python using Celluloid
1littlecoder
38 Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
1littlecoder
39 Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
1littlecoder
40 Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
1littlecoder
41 Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
1littlecoder
42 Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
1littlecoder
43 ggplot2 Text Customization with ggtext | Data Visualization in R
ggplot2 Text Customization with ggtext | Data Visualization in R
1littlecoder
44 Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
1littlecoder
45 YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
1littlecoder
46 Matplotlib Animated Bar Chart Race in Python | Data Visualization
Matplotlib Animated Bar Chart Race in Python | Data Visualization
1littlecoder
47 Simple Python GUI Development using {guietta}
Simple Python GUI Development using {guietta}
1littlecoder
48 #8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
#8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
1littlecoder
49 Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
1littlecoder
50 Github New Feature Profile Summary/Mini-Resume - Profile Views
Github New Feature Profile Summary/Mini-Resume - Profile Views
1littlecoder
51 Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
1littlecoder
52 What is OpenAI GPT-3 - Hype, Examples, Worries
What is OpenAI GPT-3 - Hype, Examples, Worries
1littlecoder
53 Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
1littlecoder
54 Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
1littlecoder
55 GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
1littlecoder
56 How to use Advanced Google Search to extract Email Ids from Linkedin
How to use Advanced Google Search to extract Email Ids from Linkedin
1littlecoder
57 Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
1littlecoder
58 Flow - R Package to visualize code logic, functions as a Flow Diagram
Flow - R Package to visualize code logic, functions as a Flow Diagram
1littlecoder
59 Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
1littlecoder
60 Create a Pencil Sketch Portrait with Python OpenCV
Create a Pencil Sketch Portrait with Python OpenCV
1littlecoder

The video discusses the limitations and criticisms of Langchain, a popular Python library for building LLM apps, and provides insights into its suitability for different use cases, including education, established workflows, and production-level pipelines. Viewers can learn how to evaluate LLM frameworks, design effective prompts, and develop LLM-based systems. However, the video also highlights the importance of considering technical debt and the potential difficulties with customization and de

Key Takeaways
  1. Evaluate the suitability of Langchain for your specific use case
  2. Consider the potential technical debt when using Langchain
  3. Design effective prompts for your LLM app
  4. Develop LLM-based systems using Langchain or other frameworks
  5. Fine-tune LLMs for specific tasks and optimize performance
  6. Align AI systems with human values and evaluate AI safety and ethics
💡 Langchain may not be the best choice for production-level pipelines due to its potential technical debt and difficulties with customization and debugging, but it can be suitable for education and established workflows.

Related Reads

Up next
This person used AI tools to get 6 Job Offers in 3 Weeks | Job Search in USA - 2026 Guide Tutorial
Career Talk
Watch →