Navigate Select ESC Close

How to apply context engineering

2025-07-29 Science & Technology
58.0k
1.7k
39
LangChain
LangChain
194.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Agents need context (e.g., instructions, external knowledge, tool feedback) to perform tasks. Context engineering is the art and science of filling the context window with just the right information at each step of an agent’s trajectory. There are many context engineering approaches, and Drew Breunig recently summarized six of the most common in his recent blog post titled "How To Fix Your Context." Here, we show how to apply each of these methods from scratch using LangGraph. Learn to build with LangGraph on LangChain Academy: https://academy.langchain.com/collections/quickstart/?utm_medium=social&utm_source=youtube&utm_campaign=q4-2025_youtube-academy-links_aw Repo: https://github.com/langchain-ai/how_to_fix_your_context Blog: https://www.dbreunig.com/2025/06/26/how-to-fix-your-context.html Slides: https://docs.google.com/presentation/d/1UqJ9xB0QQuyQbILRxgsSyIgobtu3GpzoRrHrUwj7cCI/edit?usp=sharing

Top Comments (10)

@satsanthony4452 2025-07-29

Complex topic made easy with this presentation. Will check out the notebook. Interesting how you brought together context engineering and the Context rot (Chroma) papers together. Thanks Lance.

7
@SriVigneshwarDJ 2025-07-29

Great approach!!!

3
@avidlearner8117 2025-07-31

Wow…. It’s fascinating to see things I did intuitively actually bring structured, and in such a simpler, better way!

3
@Kenykore 2025-07-29

This is brilliant, especially context offloading

2
@YourAI_agent 2025-07-29

Looking for more such videos. Also cover some prompt optimisation guides such as dspy, print wizard . Any plans for langchain team ?

0
@lb9928 2026-06-08

Dude... so articulate. Love how you leave nothing to assumption. You're a very, very good instructor!!

0
@jehandadkamal9637 2025-07-29

Beautiful Explanation! Best one for me!

0
@nickydwyer 2025-07-29

Great content, good to see the aspects of context engineering pulled together and explained so clearly. Thanks Lance 👍

0
@Kris-to7vh 2025-08-01

Thank you for this clear presentation for a complex topic

0
@ramzi.rebai.01 2025-09-01

Very clear and instructional content

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot