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,21 @@
|
||||
# Input tokens to answer one question that needs one fact (cl100k_base estimate)
|
||||
|
||||
facts approach calls input tokens
|
||||
10 none (baseline) 1 21
|
||||
10 file (index, then one file) 3 13933
|
||||
10 vector, top 5 1 118
|
||||
10 JDBC, every fact 1 188
|
||||
10 summary, one line per fact 1 178
|
||||
|
||||
50 none (baseline) 1 21
|
||||
50 file (index, then one file) 3 15533
|
||||
50 vector, top 5 1 118
|
||||
50 JDBC, every fact 1 748
|
||||
50 summary, one line per fact 1 698
|
||||
|
||||
200 none (baseline) 1 21
|
||||
200 file (index, then one file) 3 21533
|
||||
200 vector, top 5 1 118
|
||||
200 JDBC, every fact 1 2848
|
||||
200 summary, one line per fact 1 2648
|
||||
|
||||
Reference in New Issue
Block a user