How to decoding redis-stored data from rasa converation? - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

How to decoding redis-stored data from rasa conversation?

post by SUJEONG on Jun 13, 2019

Hello!
I’m a software developer in a South Korea Travel agency.
And now I’m going to try to store conversation in a redis database.
But it looks so ugly,
And it doesn’t recognize any key of things.
Only “me” recognized as key…
please help me to restore this beauty…
Thank you!

post by Vadimkatr on Jun 18, 2019

import pickle

pickle.loads(msg)

For me, it returns <rasa.core.conversation.Dialogue object at 0x7fa00ba04358>
If you know what to do next, please write there)

post by Vadimkatr on Jun 18, 2019

upd:

you can use this like:

d = pickle.loads(s)
print(d)

output:

Dialogue with name 'some_agent_id' and turns:
    ActionExecuted(action: action_listen, policy: None, confidence: None)
    SlotSet(key: time, value: 2019-06-18)
    UserUttered(text: привет, intent: {'name': 'greet', 'confidence': 0.9450039863586426}, entities: [])
    BotUttered(text: Привет!, data: {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, metadata: {})
    ActionExecuted(action: action_listen, policy: policy_0_MemoizationPolicy, confidence: 1.0)

post by SUJEONG on Jun 22, 2019

Wow, Thank you for the reply. I’ll apply this ASAP.
thank you again!!!
Cheers,
Sujeong