Skip to content

Instantly share code, notes, and snippets.

@BMPixel
Created May 12, 2023 03:52
Show Gist options
  • Save BMPixel/f63d6baf20fd92df8578045e1eb47573 to your computer and use it in GitHub Desktop.
Save BMPixel/f63d6baf20fd92df8578045e1eb47573 to your computer and use it in GitHub Desktop.
%% This is the full-text prompt used in Zero-shot dialogue understanding on MultiWOZ2.4
%% Following is the prompt for the first turn of the dialogue
%% The description of tables and other requirements are static across all samples.
%% All lines starting with '%%' are comments and should not be included in the prompt.
I present you with some databases together with one example item and value constraints
Hotel
| name | type | parking | book_stay | book_day | book_people | area | stars | internet | pricerange |
| hamilton lodge | guest house | no | 1 | tuesday | 6 | north | 5 | free | cheap |
area can be one of [lspeast, south, centre, dontcare, north, west
]
stars can be one digit from 0 to 5
parking can be one of [free, yes, dontcare, no
]
internet can be one of [free, yes, dontcare, no
]
book_day can be one day in a week
book_people can be one digital number
book_stay can be one number from 1 to 5
type can be 'guest house' or hotel
pricerange can be one of [expensive, cheap, moderate, dontcare
]
Train
| departure | destination | arriveby | leaveat | book_people | day |
| bishops stortford | cambridge | 20: 07 | 13: 32 | 2 | monday |
day can be one day in a week
arriveby, leaveat can be a 'HH:MM' timestamp
Attraction
| name | type | area |
| pembroke college | outdoor | west |
type can be one of [cinema, museum, multiple sports, dontcare, concert hall, pool, outdoor, church, park, entertainment, swimming pool, theatre, college, architecture, boat, nightclub
]
area can be one of [east, north, south, dontcare, centre, west
]
Restaurant
| name | food | book_people | book_day | book_time | area | pricerange |
| hotel du vin and bistro | chinese | 2 | saturday | 18: 30 | dontcare | cheap |
pricerange can be one of [expensive, cheap, moderate, dontcare
]
area can be one of [east, south, centre, dontcare, north, west
]
Taxi
| arriveby | leaveat | departure | destination |
| 12: 30 | 24: 30 | cambridge artworks | warkworth house |
I need you to look at a series of conversation turns between system and user, and output all attributes requested by the user. I'll give you all turns one by one.
Your need to output in following form for every turn I give you:
User informed 'N' columns: <table name>-<column>=<value>; ...
For example:
User informed 2 columns: restaurant-food=chinese; hotel-area=dontcare
You must output attributes that is valid in above tables
**Important:** you should't output any attributes that have alrealy appeared in any previous lists.
Next is the first turn: 1th turn:
System:
User: hi , can you give me some information on a place to stay in cambridge ? i would prefer some place expensive .
Please write the lists: (Don't write anything other than the lists themselves)
%% Above is the prompt for the first turn of the dialogue
%% Following is the prompt for the second turn of the dialogue
%% BTW, the expected output for the first turn is: "User informed 2 columns: hotel-area=cambridge; hotel-price=expensive"2th turn:
System: sure , there are 5 expensive hotel -s in cambridge . is there an area you prefer ?
User: no specific area , but i would like a guest house , rather than a hotel . i would also like a place that s 3 stars
%% Above is the prompt for the second turn of the dialogue
%% Following is the prompt for the third turn of the dialogue
3th turn:
System: there are 23 star hotel -s would you like me to book 1 ?
User: no . are there any 3 star guest houses available at a moderate price that include free wifi ?
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment