FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Memory Types in LangChain
How-ToMachine Learning

Memory Types in LangChain

via Dev.toTomer Ben David13h ago

Ever felt like your LLM needs a memory? LangChain felt the same thing. From full chat transcripts to summaries, entities, and vector backed recall, it gives you several ways to make a stateless model feel like it actually remembers what matters. Large Language Models are inherently stateless. Every request you send arrives as a blank slate with no recollection of what was discussed five minutes ago. To create a coherent conversation, the system must manually feed previous messages back into the model. LangChain provides several distinct patterns for managing this history. Choosing the right one is a balance between providing perfect context and managing the cost of every token. LangChain Memory Types Use the Transcript Pattern for quick, high precision support tasks. Use the Window Pattern for predictable, task oriented interactions. Use the Summary Pattern for long, creative, or collaborative sessions. Use the Entity Pattern for personal assistants that track user preferences. Use the

Continue reading on Dev.to

Opens in a new tab

Read Full Article
3 views

Related Articles

I Ran the Same C Code on Multiple Compilers… and Got Strange Results
How-To

I Ran the Same C Code on Multiple Compilers… and Got Strange Results

Medium Programming • 11h ago

The Inheritance Trap: How to Avoid Fragile Base Classes
How-To

The Inheritance Trap: How to Avoid Fragile Base Classes

Medium Programming • 12h ago

Eighty Years Later, the Chemex Still Makes Better Coffee
How-To

Eighty Years Later, the Chemex Still Makes Better Coffee

Wired • 13h ago

The Day I Realized Coding Is Less About Computers and More About Learning How Humans Think
How-To

The Day I Realized Coding Is Less About Computers and More About Learning How Humans Think

Medium Programming • 13h ago

The Strange Advice Engineers Eventually Hear
How-To

The Strange Advice Engineers Eventually Hear

Medium Programming • 17h ago

Discover More Articles