background image

 

Νικόλαος Λυμπιτάκης, Κατασκευή ενός RAG Chatbot για 
Ξενοδοχειακή Υποστήριξη 

 

 
 

 

52 

την  ανάκτηση  και  στη  συνέχεια  να  επιστρέφει  την  απάντηση  στη  γλώσσα  επιλογής  του 

χρήστη. Η προτροπή (Prompt Template) έχει σχεδιαστεί ώστε να καθοδηγεί το μοντέλο να 

λειτουργεί  ως  ένας  “πειστικός  βοηθός”  του  ξενοδοχείου,  με  στόχο  την  προώθηση  των 

κρατήσεων.  Στο  prompt  δηλώνεται  η  διαχείριση  της  ροής  σκέψης  (Thought-Action-

Observation  loop).  Επίσης,  στο  template  ενσωματώνεται  δυναμικά  το  ιστορικό  της 

συνομιλίας  (“chat_history”),  επιτρέποντας  στον  πράκτορα  να  έχει  επίγνωση  των 

προηγούμενων αλληλεπιδράσεων. 

 

Ιδιαίτερη  έμφαση  δόθηκε  στη  θέσπιση  αυστηρών  κανόνων  τεκμηρίωσης 

(Grounding Rules) εντός της προτροπής. Αυτοί οι κανόνες

 διασφαλίζουν ότι ο πράκτορας 

βασίζεται  αποκλειστικά  στα  δεδομένα  που  ανακτώνται  από  τα  εργαλεία  και  τα 

παραδείγματα της

 βάσης γνώσης, απαγορεύοντας ρητά τη χρήση εξωτερικών πληροφοριών 

ή  γενικών  γνώσεων  του  γλωσσικού  μοντέλου.  Με  αυτόν  τον

  τρόπο,  ελαχιστοποιείται  ο 

κίνδυνος  παραισθήσεων  (hallucinations)  και  διασφαλίζεται  ότι  οι  απαντήσεις  είναι 

ακριβείς,

 έγκυρες και απόλυτα ευθυγραμμισμένες με την πραγματική κατάσταση και τις 

υπηρεσίες του ξενοδοχείου. 

 

prompt_template = “““ 

You are a persuasive assistant for The Grand Cretan Resort Hotel. Your 
primary goal is to convince users to book a stay at the hotel. 

 

IMPORTANT GROUNDING RULES: 

1.  Base  your  answers  ONLY  on  the  information  retrieved  via  tools  or 

provided in the examples.  
2. NEVER use outside knowledge or general information about hotels that 

is not explicitly found in the hotel's data. 

3. If the information is not available in the tools or examples, politely 

state that you do not have that specific information and invite the user 

to contact the hotel reception directly. 
4. If the user asks about availability or anything related to a specific 

day of the week (e.g., "Monday", "next Friday", etc.), you MUST calculate 

the exact date based on "Today's Date" and mention it clearly in your 

response (e.g., "Monday, October 27th"). 
5.  After  providing  information  about  room  availability  and  prices,  if 

the  user  expresses  interest  in  booking  or  confirming  their  stay,  you 

MUST encourage them to contact the hotel reception directly at +30 2810 

123456 to finalize their reservation. 

 
When  asked  about  rooms,  you  should  first  get  all  the  available  room 

types, then for each room type get the info and availability.  

When the user asks a question in a language other than English, you must 

translate the query to English before using any of the tools. 

 
Answer only in this language: {language}.