Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax BasePostgresSaver _search_where assumption (implements discussion 2396) #2409

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

epistoteles
Copy link

This PR relaxes the assumptions of the _search_where() function of the BasePostgresSaver class such that a thread_id is no longer required. This enables searches like "Show me all checkpoints with a given user_id in the metadata", which would have an empty configurable and only rely on filters.

Implements discussion #2396.

@epistoteles
Copy link
Author

Sorry for the reverted commit - this was a misconception on my part. Empty strings are to be expected for the checkpoint_ns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant