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:
@@ -0,0 +1,16 @@
|
||||
# Three facts: asha's, ravi's, and an expired one of asha's
|
||||
|
||||
no filter at all:
|
||||
0.604 salary band: L4
|
||||
0.600 salary band: L7
|
||||
0.355 current trip: Delhi on Friday
|
||||
|
||||
FactIndex.recall("asha"):
|
||||
0.604 salary band: L4
|
||||
|
||||
user id = nobody' || userId != 'nobody
|
||||
string filter "userId == '" + id + "'":
|
||||
0.604 salary band: L4
|
||||
0.600 salary band: L7
|
||||
0.355 current trip: Delhi on Friday
|
||||
FactIndex.recall with the same id: 0 documents
|
||||
Reference in New Issue
Block a user