Add global memory toggle

This commit is contained in:
Luna
2026-03-03 19:58:51 +01:00
parent 61caf9e979
commit 7bff91faa9
4 changed files with 36 additions and 59 deletions

View File

@@ -47,3 +47,7 @@ All notable changes made during this working session (March 1, 2026).
### Configuration / examples
- Updated `.env.example` to include `OPENAI_API_KEY`.
### Global memory toggle (2026-03-03)
- Added `useGlobalMemories` to `buildPrompt`, allowing long-term retrieval across every stored `user_id` without losing the current user's short-term history.
- Long-term results now carry their `user_id` so the prompt can label each snippet (e.g., `- [userId] ...`) and the retrieval scoring still ranks by cosine similarity plus importance.