Agent memory langgraph long-term-memory using semantic search #42
Closed
jennsun wants to merge 4 commits intobbqiu/mainfrom
Closed
Agent memory langgraph long-term-memory using semantic search #42jennsun wants to merge 4 commits intobbqiu/mainfrom
jennsun wants to merge 4 commits intobbqiu/mainfrom
Conversation
jennsun
added a commit
to databricks/databricks-ai-bridge
that referenced
this pull request
Jan 7, 2026
…syncCheckpointSaver, AsyncDatabricksStore (#255) This PR adds async versions of the Lakebase connection pool (AsyncLakebasePool), LangGraph checkpoint saver (AsyncCheckpointSaver) and LangGraph PostgresStore(AsyncDatabricksStore) so they can be used in async workflows such as async agent servers and streaming applications Changes **Core Library (databricks-ai-bridge)** src/databricks_ai_bridge/lakebase.py Added AsyncLakebasePool class that wraps [psycopg_pool.AsyncConnectionPool](https://www.psycopg.org/psycopg3/docs/api/pool.html#psycopg_pool.AsyncConnectionPool) **LangChain (databricks-langchain)** **integrations/langchain/src/databricks_langchain/checkpoint.py** Added AsyncCheckpointSaver class extending [langgraph.checkpoint.postgres.aio.AsyncPostgresSaver](https://pypi.org/project/langgraph-checkpoint-postgres/) **integrations/langchain/src/databricks_langchain/store.py** Added AsyncDatabricksStore class extending [AsyncBatchedBaseStore](https://reference.langchain.com/python/langgraph/store/#langgraph.store.postgres.AsyncPostgresStore) Uses AsyncLakebasePool for connection pooling Creates short-lived AsyncPostgresStore instances for each operation Added unit tests for new classes Used in agent on apps langgraph examples: short-term: bbqiu/agent-on-app-proto#39 long-term: bbqiu/agent-on-app-proto#42
Owner
|
closing for this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created copy of agent-langgraph and added long term memory features
Note: frontend e2e-chatbot-app interface does not support passing in custom input/thread id, only invocation calls on the endpoint. Have filed a ticket to support passing in chatcontext via frontend interface so we can use user id for namespacing
example app: https://eng-ml-agent-platform.staging.cloud.databricks.com/apps/j-longtermagent?o=2850744067564480
Example local testing:
output from above:
Follow-up:
Output:
seeing store tables are ready in app logs:

ensure user preferences are stored in lakebase:

Currently, cannot use long-term memory via frontend because user id is not passed in to context. Also made sure you cannot access another user's memories via frontend
App postman request:
