lakehouse-memory
Unity Catalog-native episodic, semantic, and working memory for AI agents on Databricks.
Status: Stable (
0.1.0). Public from day one. The core library, LangChain adapters, DAB starter (M3), and docs site (M4) are shipped. See the docs for full documentation.
The pitch
Memory is the missing Databricks layer. The standard workaround is a sidecar vector DB with its own governance, access control, and lineage — a system you can't ship. Memory belongs in Unity Catalog, where your data already lives.
lakehouse-memory gives AI agents on Databricks three first-class memory primitives — episodic, semantic, and working — backed by Unity Catalog tables and Databricks Vector Search.
Install
pip install lakehouse-memory
Migrating from a pre-release:
Memory(index=...)was removed in 0.1.0. UseMemory(config, client, episodic_index=idx, semantic_index=idx)or, preferably,Memory.from_databricks(...).
Quickstart with the DAB starter (recommended)
Bootstrap the whole reference architecture — UC tables, Vector Search indexes, and a working chat agent — in your Databricks workspace:
databricks bundle init https://github.com/travis-burmaster/lakehouse-memory \
--template-dir templates/lakehouse-memory-bundle \
--output-dir my-memory-demo
cd my-memory-demo
databricks bundle deploy
databricks bundle run setup_job
You'll be prompted for your catalog, schema, Vector Search endpoint, SQL
warehouse HTTP path, and LLM serving endpoint. (--output-dir is the project
root itself, not a parent directory.) After setup_job finishes, open
notebooks/02_chat_agent.ipynb and run all cells.
The setup job typically takes ~15 minutes end-to-end: the bulk is the library install plus the one-time provisioning of two Delta Sync Vector Search indexes (which sync serially on workspaces with a single-pipeline quota). Subsequent runs against an already-provisioned schema are fast.
Manual setup (advanced)
from lakehouse_memory import Memory, MemoryConfig, Scope
from lakehouse_memory.client import SqlConnectorClient
from lakehouse_memory.vector_databricks import DatabricksVectorIndex
import os
config = MemoryConfig(catalog="main", schema_name="agent_memory")
client = SqlConnectorClient(
server_hostname=os.environ["DATABRICKS_HOST"].replace("https://", ""),
http_path=os.environ["DATABRICKS_HTTP_PATH"],
access_token=os.environ["DATABRICKS_TOKEN"],
)
index = DatabricksVectorIndex(
endpoint_name=os.environ["DATABRICKS_VECTOR_SEARCH_ENDPOINT"],
index_name=f"{config.catalog}.{config.schema_name}.episodic_idx",
workspace_url=os.environ["DATABRICKS_HOST"],
access_token=os.environ["DATABRICKS_TOKEN"],
columns=["event_id", "text", "user_id", "session_id", "agent_id"],
)
mem = Memory(config=config, client=client, index=index, scope=Scope(user_id="u_1"))
mem.provision(
vector_search_endpoint=os.environ["DATABRICKS_VECTOR_SEARCH_ENDPOINT"],
workspace_url=os.environ["DATABRICKS_HOST"],
access_token=os.environ["DATABRICKS_TOKEN"],
)
# Write a fact
mem.semantic.upsert(fact="User prefers SQL over Python.")
# Delta Sync indexes are TRIGGERED — explicitly fire the sync after writes.
# (For production, consider switching to CONTINUOUS pipelines.)
mem.semantic._index.trigger_sync()
# Wait for sync; production code would use exponential backoff
import time; time.sleep(15)
facts = mem.semantic.retrieve("language preferences", k=3)
LangChain integration:
chat = mem.as_langchain_chat_history(limit=50)
retriever = mem.as_langchain_retriever(k=5)
Production gaps
(Coming in M4. Short version: compaction at scale, multi-tenant RLS, regression evals, observability, and custom retrieval strategies are deliberately not in OSS. If you want help building past those, the Burmaster Databricks AI Practice does this for a living.)
License
Apache 2.0. See LICENSE.
Metadata
Release files for lakehouse-memory 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lakehouse_memory-0.1.0.tar.gz | 43.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lakehouse_memory-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.2 kB
Release files / lakehouse_memory-0.1.0.tar.gz
| Download URL | lakehouse_memory-0.1.0.tar.gz |
|---|---|
| Size | 43.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
343cad92c7eeb75439cfcacacf88db74d775dc386d3bd38a20464232821e9e7d
|
|
BLAKE2b-256 checksum How to use checksums |
2d28900f19907526fc0efece59f815083df426fe4e9eb1e1ebb7b8d3863c6202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / lakehouse_memory-0.1.0-py3-none-any.whl
| Download URL | lakehouse_memory-0.1.0-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9cb371dad92e2583c1dd050f4cbf5e5d19deb0e09f056aacb217b1ad5af3c7e
|
|
BLAKE2b-256 checksum How to use checksums |
f8ef557fa8da4fbcb5d65219bf41af79fc026068db70a79ba1e20b0b947f1e2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logSecurity for lakehouse-memory 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lakehouse_memory-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.