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:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# PostgreSQL 17 + pgvector on 127.0.0.1:5522. IMAGE can point at a mirror if Docker Hub rate-limits.
|
||||
set -euo pipefail
|
||||
IMAGE=${IMAGE:-pgvector/pgvector:pg17}
|
||||
docker rm -f ltm-pg >/dev/null 2>&1 || true
|
||||
docker run -d --name ltm-pg -p 127.0.0.1:5522:5432 -e POSTGRES_PASSWORD=ltm -e POSTGRES_DB=ltm "$IMAGE" >/dev/null
|
||||
for _ in $(seq 1 60); do
|
||||
docker exec ltm-pg pg_isready -h 127.0.0.1 -U postgres -d ltm >/dev/null 2>&1 && break
|
||||
sleep 1
|
||||
done
|
||||
echo "PostgreSQL ready on 127.0.0.1:5522"
|
||||
Reference in New Issue
Block a user