Tagged articles
3 articles
Page 1 of 1
The Dominant Programmer
The Dominant Programmer
May 26, 2026 · Artificial Intelligence

Spring AI ChatMemory: Concepts, Practical Setup, and Common Issues

This guide explains how Spring AI abstracts LLM conversation memory using a three‑layer architecture, demonstrates configuring MessageWindowChatMemory with a sliding‑window strategy, shows two ways to register the memory advisor, and provides complete Maven, YAML, and Java code examples with test screenshots.

ChatMemoryConversation MemoryJava
0 likes · 9 min read
Spring AI ChatMemory: Concepts, Practical Setup, and Common Issues
James' Growth Diary
James' Growth Diary
Apr 25, 2026 · Artificial Intelligence

Choosing the Right AI Memory: Truncation, Summarization, or Vector Retrieval

This article breaks down LangChain.js's three memory strategies—window truncation, summary compression, and vector‑store retrieval—explaining their inner workings, code setup, trade‑offs in token cost and information retention, and provides a decision guide for selecting the best approach in multi‑turn LLM conversations.

Conversation MemoryLLMLangChain
0 likes · 14 min read
Choosing the Right AI Memory: Truncation, Summarization, or Vector Retrieval