-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: SpannerChatMessageHistory implementation #7
Conversation
docs/chat_message_history.ipynb
Outdated
"cell_type": "code", | ||
"outputs": [], | ||
"source": [ | ||
"To run this notebook, you will need a Google Cloud Project, a Cloud Spanner instance, and Google credentials." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to to the markdown section above and add links to each item: https://console.cloud.google.com/project, https://cloud.google.com/spanner/docs/create-manage-databases ,https://googleapis.dev/python/google-api-core/latest/auth.html
docs/chat_message_history.ipynb
Outdated
{ | ||
"cell_type": "markdown", | ||
"source": [ | ||
"%pip install langchain-google-spanner" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a code cell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc fixes can be prioritized separately
b0af3cf
to
0b1f6df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if the user agent will be added in this PR or separately.
@averikitsch Added user agent support |
COLUMN_NAME = "history" | ||
|
||
|
||
def client_with_user_agent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping a note: We will create a common utility at the module layer once all the changes are checked in.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕