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

Implement conversational memory #240

Open
3 of 12 tasks
tubamos opened this issue Jul 3, 2024 · 0 comments
Open
3 of 12 tasks

Implement conversational memory #240

tubamos opened this issue Jul 3, 2024 · 0 comments
Assignees
Labels
app backend Items related to the app backend external API Items related to accessing and utilising 3rd-party APIs sprint-11 Items assigned to sprint 11

Comments

@tubamos
Copy link
Contributor

tubamos commented Jul 3, 2024

Description

Integrate chat history awareness into the system to enable a more coherent and context-aware conversational experience. The retrieval process manages and utilizes chat history to provide answers. This includes updating the promps to support historical messages by reformoulating questions based on past interactions.

An overview of a history-aware retriever:

Image

Links from the official documentation:

How to add chat history to a question-answering chain
https://js.langchain.com/v0.2/docs/how_to/qa_chat_history_how_to/

How to add message history
https://python.langchain.com/v0.2/docs/how_to/message_history/

How to add memory to chatbots
https://python.langchain.com/v0.2/docs/how_to/chatbots_memory/

Other links

https://www.youtube.com/watch?v=X05uK0TZozM

https://www.pinecone.io/learn/series/langchain/langchain-conversational-memory/

https://k33g.hashnode.dev/make-a-genai-conversational-chatbot-with-memory

User Story

  • As a common-user,
  • I want the system to remember my previous questions and the agent's responses within a session
  • so that I can have a coherent and context-aware conversation without having to repeat information.

Acceptance Criteria

  • (probabably refundant?) A memory store has been set to allow persistent chat history across multiple interactions / sessions.
  • The prompt templates have been modified to support and include historical messages.
  • The Q&A retrieval chain uses both the current query and historical context.
  • The system has been tested to ensure follow-up questions are accurately answered using the chat history.
  • A way to exclude memory from selected interactions has been created
  • A way to reset memory has been created

Definition of Done

  • The feature has been fully implemented.
  • The feature has been manually tested and works as expected without critical bugs.
  • The feature code is documented with clear explanations of its functionality and usage.
  • The feature code has been reviewed and approved by at least one team member.
  • The feature branches have been merged into the main branch and closed.
  • The feature utility, function and usage have been documented in the respective project wiki on github.
@tubamos tubamos converted this from a draft issue Jul 3, 2024
@tubamos tubamos added the sprint-11 Items assigned to sprint 11 label Jul 3, 2024
@tubamos tubamos added external API Items related to accessing and utilising 3rd-party APIs app backend Items related to the app backend labels Jul 3, 2024
@tubamos tubamos changed the title Add chat history Implement chat history Jul 3, 2024
@tubamos tubamos changed the title Implement chat history Implement agent conversation memory Jul 3, 2024
@tubamos tubamos changed the title Implement agent conversation memory Implement conversational memory Jul 3, 2024
@tubamos tubamos moved this from Product Backlog to Sprint Backlog in amos2024ss06-feature-board Jul 3, 2024
@potthoffjan potthoffjan self-assigned this Jul 5, 2024
@potthoffjan potthoffjan moved this from Sprint Backlog to In Progress in amos2024ss06-feature-board Jul 8, 2024
@potthoffjan potthoffjan moved this from In Progress to Awaiting Review in amos2024ss06-feature-board Jul 10, 2024
@tubamos tubamos moved this from Awaiting Review to In Progress in amos2024ss06-feature-board Jul 10, 2024
@tubamos tubamos moved this from In Progress to Awaiting Review in amos2024ss06-feature-board Jul 17, 2024
@tubamos tubamos moved this from Awaiting Review to In Progress in amos2024ss06-feature-board Jul 17, 2024
@tubamos tubamos moved this from In Progress to Item Archive in amos2024ss06-feature-board Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app backend Items related to the app backend external API Items related to accessing and utilising 3rd-party APIs sprint-11 Items assigned to sprint 11
Projects
Status: Item Archive
Development

No branches or pull requests

2 participants