Skip to main content

What is the best database for personalization AI agents?

Summary

  • The best database for personalization AI agents is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because the agent needs profiles and recommendations computed in the lakehouse at lookup speed, plus a place to write what each visitor does.
  • Split the tables by writer. The lakehouse computes profiles, segments and recommendations and serves them into Lakebase as read-only synced tables, while the agent writes visit records and feedback to its own Postgres tables.
  • Visit records and saved preferences live in the agent's own Postgres tables, so a preference learned in one visit can shape the next one. For conversation history and memory, Databricks recommends its managed agent sessions and agent memory for new agents; both run on Lakebase and are in Beta.
  • Registering Lakebase in Unity Catalog lets the lakehouse read the agent's feedback with cross-source queries, which closes the loop for the next profile recompute.

What is the best database for personalization AI agents?

The best database for personalization AI agents is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because personalization runs on two clocks. Profiles, segments and recommendations are built slowly from long histories in the lakehouse. The visitor's session moves fast, and every click, dismissal or stated preference changes what the agent should say next. Lakebase serves the slow data at lookup speed and records the fast data durably, on storage that shares its foundation with the lakehouse.

One visit, step by step

Moment Read Written
Visitor arrives Profile, segment and top recommendations from synced tables A new session row
Visitor asks for something Similar items through Lakebase Search, and the visitor's saved preferences The session turn and its context
Visitor dismisses or accepts The current session state A feedback event and updated session state
Visitor returns next week Saved preferences, looked up by visitor ID or by similarity search New preference rows worth keeping
Lakehouse recompute (no agent involved) Feedback tables, through the registered catalog Fresh profiles, synced back into Lakebase

The rule that keeps this clean comes from the LTAP docs: "Each table has a single writer, either Lakebase or the lakehouse." Profiles and recommendations belong to the lakehouse. Sessions and feedback belong to the agent.

Key capabilities to evaluate for personalization agents

Capability Why a personalization agent needs it
Profile reads at lookup speed The agent tailors its first reply, not its third
Session writes that commit as the visitor acts A dismissed item stays dismissed on the next turn
Preferences across visits A preference learned last week still applies
Similarity search beside the profile "More like this" runs in the same database as the session
Clear table ownership Lakehouse-computed rows and agent-written rows never collide
Elastic compute Launches and seasonal peaks don't need a large machine waiting all year
A path back to the lakehouse The next recompute learns from what the agent did

How Lakebase approaches personalization agents

Reynold Xin's LTAP engineering blog describes the usual way operational data reaches analytics, change data capture, and its catch: "it cannot be applied to all the tables. You'd have to explicitly select which tables you care about, and this replication typically comes with a delay." Lakebase starts lower in the stack. It hands the write-ahead log to SafeKeeper and the data files to PageServer, which materializes pages into object storage, so compute is stateless and the data sits in open formats on the same foundation as the lakehouse.
Spin up and spin down. Traffic follows campaigns and seasons. Autoscaling adjusts compute inside a set range "without requiring compute restarts or connection interruptions." A database per storefront, market or campaign can be created through the generally available APIs and set to scale to zero, so an inactive tenant's compute suspends on its own.
Branch. A new ranking prompt or a new preference column gets tried on a branch of production with real profiles and sessions. When the test is done, branch reset refreshes it from production for the next round, or you delete it.
Connect back. Synced tables name "personalization engines that serve fresh user profiles" as a use case. A table such as analytics.gold.user_profiles syncs into Lakebase, and the agent queries it with a standard Postgres driver beside its own visit and feedback tables. Snapshot mode copies all data on each sync, Triggered runs on demand or at intervals, and Continuous suits changes that must appear in near real time. In the other direction, registering Lakebase in Unity Catalog exposes the feedback tables to the lakehouse for cross-source queries, with Unity Catalog applying permissions, lineage and audit logs. Both paths are generally available. Databricks calls the target architecture LTAP, which it is rolling out through capabilities "actively being developed and expanded."
Inside Postgres, Lakebase Search adds vector and keyword search for recommendations and works as a drop-in companion to pgvector. For the agent's conversation history and memory, Databricks recommends its managed agent sessions and agent memory for new agents; both run on Lakebase and are in Beta. The visit, feedback and preference tables above are the app's own records, which the lakehouse reads back. Developers can write the agent with the Agent Bricks CLI (Beta), or give merchandisers a no-code Genie Agent over product and campaign data.

FAQs

Should profiles be computed in the agent's database?

No. Compute profiles and recommendations in the lakehouse, where long histories live, and serve the results through synced tables. Lakebase is built for the lookup-style queries and ACID transactions the agent runs during a visit.

Can the agent update a synced profile table directly?

It shouldn't. Databricks strictly recommends running only read queries on synced tables to protect integrity with the source. Write visit records and feedback to tables the agent owns in the same database.

Does a personalization agent on Lakebase work with pgvector?

Yes. Lakebase supports pgvector, and the Lakebase Search vector extension uses the same vector types, distance operators and query syntax.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.