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

community[minor] add FileChatMessageHistory #7303

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

Conversation

sinedied
Copy link
Contributor

@sinedied sinedied commented Dec 2, 2024

Changes

Added FileChatMessageHistory to allow chat history based on a local JSON file. The implementation optionally supports:

  • storing and listing sessions for a given user ID
  • storing additional context metadata alongside the messages history

The implementation is currently only compatible with Node.js, but the storage backend can be easily extended to support other environments.

The purpose of this module is to have a simple way to store chat histories locally, without having to rely on an external DB, for experimentations, local development, or local-first LLM scenarios.

Copy link

vercel bot commented Dec 2, 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 Dec 2, 2024 2:18pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Dec 2, 2024 2:18pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases labels Dec 2, 2024
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 size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant