lakebase-memory-patterns

Implement Databricks Lakebase memory patterns for stateful LangGraph agents.

5|6|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/databricks-solutions/vibe-coding-workshop-template --skill lakebase-memory-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lakebase-memory-patterns
Source: https://github.com/databricks-solutions/vibe-coding-workshop-template/tree/main/data_product_accelerator/skills/genai-agents/03-lakebase-memory-patterns
Command: npx skills add https://github.com/databricks-solutions/vibe-coding-workshop-template --skill lakebase-memory-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill enables stateful AI agents to maintain conversation continuity and remember user preferences across sessions by leveraging Databricks Lakebase for both short-term and long-term memory.

Core Features & Use Cases

  • Short-Term Memory: Ensures conversation continuity within a single session using CheckpointSaver.
  • Long-Term Memory: Stores user preferences and insights across multiple sessions using DatabricksStore with vector embeddings.
  • Graceful Degradation: Allows the agent to function even if memory tables are unavailable.
  • Thread ID Resolution: Intelligently determines the conversation thread ID for state management.
  • Use Case: An AI customer support agent can remember a user's previous issues and preferences, providing a more personalized and efficient support experience without starting from scratch each time.

Quick Start

Initialize the short-term memory with your Lakebase instance name and use its checkpointer when compiling your LangGraph workflow.

Frequently Asked Questions about lakebase-memory-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add long-term memory to a LangGraph agent for user preferences?

You add long-term memory by integrating DatabricksStore with vector embeddings to save user preferences across multiple sessions. This allows your LangGraph agent to recall past interactions and personalize responses.

What's the best way to maintain conversation continuity in a stateful AI agent?

The best way to maintain conversation continuity is using CheckpointSaver for short-term memory within a single session. This ensures your stateful AI agent retains ongoing dialogue context without losing track.

Does LangGraph work with Databricks Lakebase for stateful execution?

Yes, LangGraph works with Databricks Lakebase for stateful execution by integrating CheckpointSaver and DatabricksStore. This combination supports both short-term conversation continuity and long-term vector-based preference storage.

How do I resolve thread IDs when managing stateful AI agents?

You resolve thread IDs using intelligent thread ID resolution mechanisms provided by the memory patterns. This determines the correct conversation thread for accurate state management across interactions.

Can my AI agent still function if Databricks memory tables are unavailable?

Yes, your AI agent can still function if memory tables are unavailable through graceful degradation. This allows the agent to operate normally even when persistent memory storage is inaccessible.