Skip to content

Add Memory Module for AURA#31

Open
NeoRyumasil wants to merge 10 commits intoF201:mainfrom
NeoRyumasil:feature/memory-module
Open

Add Memory Module for AURA#31
NeoRyumasil wants to merge 10 commits intoF201:mainfrom
NeoRyumasil:feature/memory-module

Conversation

@NeoRyumasil
Copy link
Contributor

@NeoRyumasil NeoRyumasil commented Mar 21, 2026

Summary

Add Memory module for chat and call session.

Changes

  • Add database model for Message, Conversation, and Memory table in ai-service and voice-agent
  • Change memory service in ai-service such as:
    - create conversation for a session and save it to database
    - get conversation from database
    - save interaction messages to database
  • Ai service now load the history first before generate response
  • Add memory service in voice-agent (same as in ai service but add function that get and save extracted LLM conversation to memory table))
  • Add memory extraction system prompt in agent.py
  • Add build_system_prompt function that combine base prompt with long term memory in agent.py
  • Extract and save memories in agent.py
  • Add some requirements for memory in requirements.txt
  • Add pixi.js dependencies for dashboard in package.json

Testing

  • Run the program

  • Test with chat :

    • Give some information like telling a name in a chat session
    • Ask the information that has been given in a new chat session
  • Test with call:

    • Give some information like telling a name in a call session
    • Ask the information that has been given in a new call session
    • AI can remember the chat session so, you can also ask the information from chat session
  • Notes:

    • In a chat session took about 30 seconds - 1 minutes for ai to reply for first message in the chat session
    • In a call session took about 30 seconds - 1 minutes for ai to "warmup" for every call session
    • In some test took about 10 seconds for ai to reply in call session
    • After Call Session ended need about 3 minutes - 5 minutes to do the call session again (For this minutes of range call session not generated i think)

Related Issues

Closes #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory module

1 participant