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

Can We Use Storage Feature? #623

Closed
PBomermustekiin opened this issue Dec 17, 2024 · 2 comments
Closed

Can We Use Storage Feature? #623

PBomermustekiin opened this issue Dec 17, 2024 · 2 comments
Labels
c:memory Memory in chain. t:documentation Improvements or additions to documentation

Comments

@PBomermustekiin
Copy link

Issue with current documentation:

No response

Idea or request for content:

Hi,

Am i able to send chats to openAI and fetch them from storage with this package? So basically i wanna create history part for old chats and achieve them.

@PBomermustekiin PBomermustekiin added the t:documentation Improvements or additions to documentation label Dec 17, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in LangChain.dart Dec 17, 2024
@Nana-Kwame-bot
Copy link
Contributor

You could create an extension method on ChatMessage or List<ChatMessage>> for serialisation and deserialisation and then save the messages as json?

@davidmigloz
Copy link
Owner

Currently, we only have support for storing the history in-memory:
https://langchaindart.dev/#/modules/memory/memory

But, it should be possible to do a custom implementation to persist the history to disk as @Nana-Kwame-bot mentions. #171 does that with Firestore.

Chat history is an area where we still need to improve the framework.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in LangChain.dart Dec 21, 2024
@davidmigloz davidmigloz added the c:memory Memory in chain. label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:memory Memory in chain. t:documentation Improvements or additions to documentation
Projects
Status: Done
Development

No branches or pull requests

3 participants