LangChain.js: An AI ToolChain for JavaScript Developers
2h 19mIntermediate2025-01-08
Authors

Fikayo Adepoju
Technical Writer | Software Developer
Course details
In this course for JavaScript and Node.js developers, Fikayo Adepoju, an experienced software developer and tech instructor, explores the LangChain framework for JavaScript and shows how to integrate AI-powered functionalities into your applications. Discover how to develop powerful prompts, set up integrations for large language models (LLMs), and build efficient workflow chains. Uncover strategies for transforming raw LLM responses into structured outputs using different output parsers. Dive deep into integrating localized models using frameworks like O Lama and manage token consumption and request cancellation. Gain insights into optimizing AI responses and building modular, maintainable code using LangChain’s tools and utilities. Whether you're looking to add AI-driven features to your existing applications or start afresh, this course provides practical techniques and hands-on examples to get you started.
Skills covered
LangChainEcma InternationalNatural Language Processing (NLP)JavaScriptFront-End Web DevelopmentSoftware Development ToolsArtificial Intelligence (AI)Web DevelopmentOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Build AI apps with LangChain
- 02 - What you should know
- 03 - Using the exercise files on GitHub
1. Writing Your First Chain
- 04 - What is LangChain and Langchain.js
- 05 - Hello, world in Langchain.js
- 06 - Project setup
- 07 - Setting up the model
- 08 - Creating your prompt
- 09 - Outputting the model response
2. Prompt Templates
- 10 - Understanding prompt templates
- 11 - Creating a prompt template
- 12 - Chat templates
- 13 - Multimodal templates
- 14 - Template composition
3. LLMs and Chat Models
- 15 - Understanding LLMs
- 16 - Setting up a remote LLM
- 17 - Setting up a local LLM
- 18 - Chat models
- 19 - Tracking token usage
- 20 - Cancelling requests
4. Output Parsers and Chains
- 21 - Understanding output parsers
- 22 - Using string parsers
- 23 - Using list parsers
- 24 - Creating a simple chain
- 25 - Combining chains
Conclusion
- 26 - Next steps