Add long-term-memory module: file, vector and summary memory on one Spring AI agent. AutoMemoryTools and AutoMemoryToolsAdvisor, fact extraction with a privacy gate into PostgreSQL and pgvector, VectorStoreChatMemoryAdvisor, a versioned summary, updating, forgetting, isolation, expiry, recall with all-MiniLM-L6-v2 and token cost. Scripted ChatModel; no provider or local LLM called. Spring Boot 4.2.0, Spring AI 2.1.0, Java 25.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
Claude
2026-12-05 16:19:40 +05:30
parent c8fa0912f7
commit 5724303728
37 changed files with 1833 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Extra model work to store one new fact (cl100k_base estimate, scripted replies)
facts approach extra calls extra input extra output
10 file (3 tool round trips) 3 14206 70
10 vector (one extraction call) 1 419 22
10 summary (one rewrite) 1 188 125
50 file (3 tool round trips) 3 16606 70
50 vector (one extraction call) 1 619 22
50 summary (one rewrite) 1 708 645
200 file (3 tool round trips) 3 25606 70
200 vector (one extraction call) 1 1369 22
200 summary (one rewrite) 1 2658 2595