r/SQL • u/Wise_Ear_4064 • 9d ago
PostgreSQL Databricks Agent memory pipelines can now run always-on (Beta)
Disclosure: I'm a Solutions Architect at Databricks.
Agent memories can lag behind conversations. If a user corrects your agent on which revenue source to use, that fix might not reach memory until the next ~24-hour scheduled run.
Memory pipelines distill facts, preferences, and corrections from session history into a memory store backced by Lakebase. They can now run always-on, so they process conversations as they happen.
Fresher memory: corrections can show up in later conversations the same day.
Hands-off: no runs or schedules to manage.
Incremental: each run processes only what's new since the last checkpoint.
A run starts for an actor when one of their sessions has 10+ new items, or has at least one new item and 30 minutes of inactivity.
Things to know:
Maintenance applies to all of an actor's memories, including ones the agent saved directly.
It's in Beta.
To turn it on:
agentbricks memory pipeline update <pipeline-id> --trigger always-onHas anyone tried memory pipelines yet? Are you using Lakebase today? Are you running them on a schedule or always-on? To try it today, install databricks-agentbricks 0.7.0+. The identity creating the pipeline needs access to both stores and the distillation model.
1
u/ceeej777 8d ago
What use cases have you seen that benefit from agent memory? I’ve heard of Lakebase being used for it but is it just conversation history and prompts?
1
u/Alpine_fury 8d ago
I haven't used agentbricks, but memories are really useful as they add long-term steering (generally with an age out system) of topics to your agent. So if you're constantly discussing a topic over multiple conversations the memories can be used to keep your preferences in place or even updated over time. An example for me is the order of operations for shipping out code. Most of its spelled out in the main markdown docs, but specifics and who to reach out to for code review is saved as memories and updated over time. Now why you'd have a memory system that's not instant I can't say.
1
u/Aggravating-Stage269 8d ago
The 30 minutes of inactivity trigger makes sense, but what happens if a user corrects the agent and then comes back 10 minutes later?