Skip to content

Commit

Permalink
Add complex graph and visualization notebook for dialogue generation …
Browse files Browse the repository at this point in the history
…experiments
  • Loading branch information
NotBioWaste905 committed Dec 13, 2024
1 parent 939ffb4 commit ac9bfd7
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 0 deletions.
249 changes: 249 additions & 0 deletions experiments/2024.12.11_visualization/complex_graphs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
[
{
"graph": {
"nodes": [
{
"id": 1,
"label": "start",
"is_start": true,
"utterances": [
"Good evening, how can I help?"
]
},
{
"id": 2,
"label": "",
"is_start": false,
"utterances": [
"How long are you going to stay?"
]
},
{
"id": 3,
"label": "",
"is_start": false,
"utterances": [
"We have a vacant room. Do you need anything else?"
]
},
{
"id": 4,
"label": "",
"is_start": false,
"utterances": [
"Unfortunately we do not have a vacant room for these dates, but we can offer two separate single rooms. Would this be acceptable?"
]
},
{
"id": 5,
"label": "",
"is_start": false,
"utterances": [
"Okay, now I need your ID card."
]
},
{
"id": 6,
"label": "",
"is_start": false,
"utterances": [
"Can I help you with anything else?"
]
},
{
"id": 7,
"label": "",
"is_start": false,
"utterances": [
"Thank you. This is your key, have a good stay!"
]
},
{
"id": 8,
"label": "",
"is_start": false,
"utterances": [
"Okay, goodbye!"
]
}
],
"edges": [
{
"utterances": [
"I want to book a duplex room"
],
"source": 1,
"target": 2
},
{
"utterances": [
"One night"
],
"source": 2,
"target": 3
},
{
"utterances": [
"Three nights"
],
"source": 2,
"target": 4
},
{
"utterances": [
"No, thanks"
],
"source": 3,
"target": 5
},
{
"utterances": [
"Okay, it will do"
],
"source": 4,
"target": 5
},
{
"utterances": [
"No, thanks, this does not suit me"
],
"source": 4,
"target": 6
},
{
"utterances": [
"Here it is"
],
"source": 5,
"target": 7
},
{
"utterances": [
"No, thanks"
],
"source": 6,
"target": 8
}
]
},
"dialogues": [
[
{
"text": "Good evening, how can I help?",
"participant": "assistant"
},
{
"text": "I want to book a duplex room",
"participant": "user"
},
{
"text": "How long are you going to stay?",
"participant": "assistant"
},
{
"text": "One night",
"participant": "user"
},
{
"text": "We have a vacant room. Do you need anything else?",
"participant": "assistant"
},
{
"text": "No, thanks",
"participant": "user"
},
{
"text": "Okay, now I need your ID card.",
"participant": "assistant"
},
{
"text": "Here it is",
"participant": "user"
},
{
"text": "Thank you. This is your key, have a good stay!",
"participant": "assistant"
}
],
[
{
"text": "Good evening, how can I help?",
"participant": "assistant"
},
{
"text": "I want to book a duplex room",
"participant": "user"
},
{
"text": "How long are you going to stay?",
"participant": "assistant"
},
{
"text": "Three nights",
"participant": "user"
},
{
"text": "Unfortunately we do not have a vacant room for these dates, but we can offer two separate single rooms. Would this be acceptable?",
"participant": "assistant"
},
{
"text": "Okay, it will do",
"participant": "user"
},
{
"text": "Okay, now I need your ID card.",
"participant": "assistant"
},
{
"text": "Here it is",
"participant": "user"
},
{
"text": "Thank you. This is your key, have a good stay!",
"participant": "assistant"
}
],
[
{
"text": "Good evening, how can I help?",
"participant": "assistant"
},
{
"text": "I want to book a duplex room",
"participant": "user"
},
{
"text": "How long are you going to stay?",
"participant": "assistant"
},
{
"text": "Three nights",
"participant": "user"
},
{
"text": "Unfortunately we do not have a vacant room for these dates, but we can offer two separate single rooms. Would this be acceptable?",
"participant": "assistant"
},
{
"text": "No, thanks, this does not suit me",
"participant": "user"
},
{
"text": "Can I help you with anything else?",
"participant": "assistant"
},
{
"text": "No, thanks",
"participant": "user"
},
{
"text": "Okay, goodbye!",
"participant": "assistant"
}
]
]
},
{

}
]
103 changes: 103 additions & 0 deletions experiments/2024.12.11_visualization/main.ipynb

Large diffs are not rendered by default.

0 comments on commit ac9bfd7

Please sign in to comment.