Multi-Turn Conversations: Context and Memory Patterns
Learn how to design multi-turn LLM conversations with effective context management, memory patterns, conversation state tracking, and production architectures.
14 posts · page 1 of 1
Learn how to design multi-turn LLM conversations with effective context management, memory patterns, conversation state tracking, and production architectures.
Learn how to build AI agents with tool use, memory systems, and planning capabilities using Python and LLMs for autonomous task completion.
Understand Python's garbage collection, reference counting, and how weak references prevent memory leaks in caches, observers, and circular structures.
Learn how to use WeakRef and FinalizationRegistry for custom cleanup callbacks, weak caching, and observing garbage collection in JavaScript.
Manage long conversations and large documents within LLM context limits using truncation, summarization, and sliding window techniques.
A hands-on guide to Rust smart pointers covering heap allocation with Box, shared ownership with Rc, and thread-safe sharing with Arc.
RAII is the central idea behind safe C++ code. Learn how scope-bound resource ownership eliminates leaks, simplifies error handling, and scales beyond memory.
A clear comparison of references and pointers in C++, when each is the right tool, and how their semantics interact with const, ownership, and APIs.
A practical guide to unique_ptr, shared_ptr, and weak_ptr in modern C++: ownership semantics, when to use each, and the pitfalls that lead to leaks and cycles.
Understand the real difference between arrays and slices in Go, how slice headers work, and how to avoid the classic aliasing and capacity surprises.
Use Pandas Categorical dtype to cut memory, speed up groupby, and encode ordered categories cleanly with practical conversion and pitfall notes.
Find and fix memory leaks in Node.js using heap snapshots, sampling, and a few reliable patterns to avoid leaks.
A practical introduction to Rust's ownership and borrowing rules: moves, references, mutability, and the mental model that makes the borrow checker stop fighting you.
Use unique_ptr, shared_ptr, and weak_ptr to model ownership in modern C++ without manual new and delete or memory leaks.