Half of 'AI agent memory' problems disappear if you just store structured user preferences in a normal SQL table
I've watched three separate teams spend weeks building vector-based "long-term agent memory" only to end up with an assistant that confidently retrieves an outdated preference from two months ago because cosine similarity liked the phrasing.
If you're storing user facts and preferences—timezone, preferred language, output format, billing tier, blocked tools—you don't need semantic similarity search. You need a boring Postgres table with user_id, key, value, and updated_at.
Give the agent a set_preference(key, value) tool, load those 10 rows deterministically into context at the start of each session, and let the user view or delete them in a normal settings page. Save the vector DB for actual unstructured documents.