Skip to content

How to incrementally update memories on an on-going conversation? #27

@Luffy966

Description

@Luffy966

During an on-going conversation, the messages of it can be incrementally updated.
An example is like:

# first round
messages = [
    {"role":"user", "content": "Hello!"},
    {"role":"assistant", "content": "Hi there, how can I help you today?"}
]

# second round
messages = [
    {"role":"user", "content": "Hello!"},
    {"role":"assistant", "content": "Hi there, how can I help you today?"},
    {"role":"user", "content": "I'm tired!"},
    {"role":"assistant", "content": "I'm sorry to hear that. What happens?"}
]

# ...

# n round

And it seems that each time calling client.memorize_conversation(conversation=messages, ...), it would create a new conversation_id instead of incrementally update the origin conversation.

The question is: how can we incrementally update memories and conversations? Or just pass full conversation history every time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions