-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add complex graph and visualization notebook for dialogue generation …
…experiments
- Loading branch information
1 parent
939ffb4
commit ac9bfd7
Showing
2 changed files
with
352 additions
and
0 deletions.
There are no files selected for viewing
249 changes: 249 additions & 0 deletions
249
experiments/2024.12.11_visualization/complex_graphs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
] | ||
}, | ||
{ | ||
|
||
} | ||
] |
Large diffs are not rendered by default.
Oops, something went wrong.