Skip to content

feat: Adding PGChatMessageHistory #203

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

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

Conversation

dishaprakash
Copy link
Collaborator

feat: Adding PGChatMessageHistory along with it's documentation

Not deprecating the PostgresChatMessageHistory for now (as the deprcation for PGVector has been removed).

else:
return f"""SELECT data, type FROM "{self.schema_name}"."{self.table_name}" WHERE session_id = :session_id ORDER BY id;"""

def _convert_to_messages(self, rows: Sequence[RowMapping]) -> list[BaseMessage]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: make private

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left some functions to be semi private so we can override them in the google integrations. These are mostly related to how the data is to be pulled from the db or added in depending on the schema

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.

2 participants