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

Add chat memory #30

Closed
2 tasks
sinedied opened this issue Apr 4, 2024 · 4 comments · Fixed by #106
Closed
2 tasks

Add chat memory #30

sinedied opened this issue Apr 4, 2024 · 4 comments · Fixed by #106
Assignees
Labels
backend enhancement New feature or request

Comments

@sinedied
Copy link
Contributor

sinedied commented Apr 4, 2024

Currently only the last chat message with the user question is fed to the chat model. However, the complete chat history is sent to the server. We should use LangChain's Memory component to integrate the previous messages in the model invocation, with a limit set.

Tasks

  • Add BufferMemory with the last 5 messages to the existing chain in /chat endpoint
  • Extract the 5 message window value in constants.ts

Superseded by #106 that implements full chat history

@sinedied sinedied added enhancement New feature or request backend labels Apr 4, 2024
Copy link

github-actions bot commented Jun 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

@github-actions github-actions bot added the Stale label Aug 10, 2024
@sinedied sinedied removed the Stale label Aug 12, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

@github-actions github-actions bot added the Stale label Oct 12, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@sinedied sinedied removed the Stale label Oct 21, 2024
@sinedied sinedied reopened this Oct 21, 2024
@sinedied sinedied self-assigned this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant