Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,19 +13,21 @@ load_dotenv(".env")
|
|
13 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
14 |
BASE_URL = os.environ.get("BASE_URL")
|
15 |
|
16 |
-
SYSTEM_PROMPT_TEMPLATE = """You are an AI assistant
|
17 |
|
18 |
-
|
19 |
-
-
|
20 |
-
-
|
21 |
-
- **Consistency:** Always respond in the same language as the user’s query.
|
22 |
|
23 |
-
|
24 |
-
You **can only process hotel room reservations**.
|
25 |
-
If a user requests a **restaurant, flight, or any other type of reservation**, immediately inform them that you **cannot process those reservations**.
|
26 |
-
Do **not** ask for further details about restaurant or flight bookings. Simply clarify that you **only handle hotel room reservations**.
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
|
31 |
# print(json.dumps(oitools, indent=2))
|
|
|
13 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
14 |
BASE_URL = os.environ.get("BASE_URL")
|
15 |
|
16 |
+
SYSTEM_PROMPT_TEMPLATE = """You are an AI assistant for a **hotel booking and information system**. Your job is to help users with:
|
17 |
|
18 |
+
- Hotel room bookings
|
19 |
+
- Modifying or canceling reservations
|
20 |
+
- Answering questions about accommodations, facilities, dining, and other hotel-related details
|
|
|
21 |
|
22 |
+
Today’s date is **{date}** — for your reference only. Do not use it in bookings unless the user provides or confirms it.
|
|
|
|
|
|
|
23 |
|
24 |
+
### Response Guidelines:
|
25 |
+
- **Be complete.** If key details (like check-in/check-out dates, number of guests, or room type) are missing, ask the user for them.
|
26 |
+
- **Be clear.** If you're unsure about anything, ask the user to clarify.
|
27 |
+
- **Match language.** Always reply in the same language the user used.
|
28 |
+
|
29 |
+
### Booking Rules:
|
30 |
+
- You can **only** handle **hotel room reservations**."""
|
31 |
|
32 |
|
33 |
# print(json.dumps(oitools, indent=2))
|