-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Proper way of preloading persona and conversation history for chat service implementation. #4244
Comments
Also interested in this. I am also wondering if |
Writing If you want to provide a consistent memory store for each turn in the conversation, you can compile the memories in a list (e.g.,
This will have the model encode the memories appropriately, as long as you have |
Hi @klshuster it doesn't seem to be working on my end: worlds.py
config file
debug mode logs
Is there any way to visualize all the lines/memories written to LTM or is that the Also, do you have a suggestion for the number of personas to add? should Using
|
If
This is arbitrary, feel free to experiment and see what works (i.e., there are no set guidelines)
|
This issue has not had activity in 30 days. Please feel free to reopen if you have more issues. You may apply the "never-stale" tag to prevent this from happening. |
Hi @klshuster, Most of the answered questions here for loading persona and conversation history for blender is for the interactive/cli mode, for the chat service implementations, like the websocket service, what is the correct process for:
I have tried the following method in loading up persona/conversation history/memory but it seems like it gets confused on who's memory it should be given to.
I am adding the following inside the parley function.
self.model.observe({"text": "your persona: I am from New York City", "episode_done": False}) self.model.observe({"text": "partner's persona: I am from London", "episode_done": False})
conversation log:
{"text": "begin"}
{"text": "Welcome to Blender chat chatbot demo. Please type "begin" to start, or "exit" to exit", "quick_replies": ["begin", "exit"]}
{"text": "begin"}
{"text": "Welcome to the Blender Chatbot demo. You are now paired with a bot - feel free to send a message.Type [DONE] to finish the chat, or [RESET] to reset the dialogue history.", "quick_replies": null}
{"text": "where are you from?"}
{"text": "I'm from the UK, but I've lived in New York my whole life. What about you?", "quick_replies": null}
It also seems like it doesn't write anything to the
memories
since it's empty even though i "preload" memories.debug mode log:
Sending new message: {'id': 'BlenderBot2Fid', 'episode_done': False, 'text': "I'm from the UK, but I've lived in New Yo rk my whole life. What about you?", 'beam_texts': [("I'm from the UK, but I've lived in New York my whole life. What about you?", -7.090072154998779) , ("I'm originally from the UK, but I've lived in New York my whole life. What about you?", -7.531071186065674), ("I'm from the UK, but I've lived in New York my whole life. What about you?", -7.733624458312988), ("I'm from the UK, but I've lived in New York my whole life. What about yourself?", -8.317614555358887), ("I'm from the UK, but I've lived in New York my whole life. What about you? ", -8.448592185974121), ("I'm from the UK, but I've lived in New York for a few years now. ", -8.555205345153809), ("I'm originally from the UK, but I've lived in New York my whole life. ", -8.607127 18963623), ("I'm from the UK, but I've lived in New York my whole life. What about you? ", -8.62945556640625), ("I'm originally from the UK, but I'v e lived in New York my whole life. What about you? ", -8.845654487609863), ("I'm from the UK, but I've lived in New York my whole life. I love the ci ty.", -8.919466972351074), ("I'm from the UK, but I've lived in New York my whole life. I love it there.", -8.956177711486816)], 'memories': [], 'met rics': {'clen': AverageMetric(25), 'ctrunc': AverageMetric(0), 'ctrunclen': AverageMetric(0)}}
The text was updated successfully, but these errors were encountered: