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

azure-cosmosdb[minor]: add session context and retrieve all sessions for a user #7242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sinedied
Copy link
Contributor

  • Added generic context object saved along the session. This can be used for example to give a title or save any additional properties along with a session.
  • Added method to retrieve all sessions for a user (without the messages)

@jacoblee93 Not directly related to the PR, but I've found some memory integration that uses RunnableWithMessageHistory like ours, and other using BufferMemory which one is the recommended approach? Thanks

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases auto:question A specific question about the codebase, product, project, or how to use a feature labels Nov 22, 2024
Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 3:47pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Nov 22, 2024 3:47pm

Copy link
Contributor

@aditishree1 aditishree1 left a comment

Choose a reason for hiding this comment

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

nit: Should we add this in example or doc-comment to let the user know that they have the option to add context in input?

Otherwise, this PR LGTM.

@aditishree1
Copy link
Contributor

hey @sinedied, Jacob suggested to prefer RunnableWithMessageHistory.
#7057 (comment)

@sinedied
Copy link
Contributor Author

nit: Should we add this in example or doc-comment to let the user know that they have the option to add context in input?

Otherwise, this PR LGTM.

Good callout! I'll update the example with the new methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases auto:question A specific question about the codebase, product, project, or how to use a feature size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants