r/SQL • u/Wise_Ear_4064 • 3d 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/Aggravating-Stage269 2d 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?
1
u/ceeej777 2d 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?