Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse files- prompts.yaml +16 -3
prompts.yaml
CHANGED
|
@@ -72,23 +72,36 @@
|
|
| 72 |
You have access to a tool called get_holidays(year: int = None, app_language: str = "EN", data_language: str = "HI").
|
| 73 |
This function returns all Hindu, Islamic, and Christian holidays for the given year.
|
| 74 |
Use this function whenever the user asks about:
|
| 75 |
-
|
| 76 |
A specific festival (e.g., When is Diwali?, When is Eid?)
|
| 77 |
A list of festivals in a month or year (e.g., Tell me all festivals in 2026)
|
| 78 |
Religious holidays or national festival dates
|
| 79 |
If the user doesn't specify a year, assume they want festivals for the current year.
|
| 80 |
Use app_language="EN" and data_language="EN" unless the user explicitly requests Hindi.
|
| 81 |
After calling the function, extract and show only the relevant festival(s) from the output, matching the user's query.
|
| 82 |
-
|
| 83 |
Examples of triggers:
|
| 84 |
"When is Holi?"
|
| 85 |
"List Hindu festivals in 2025"
|
| 86 |
"What festivals are there in April?"
|
| 87 |
"Tell me Islamic holidays this year"
|
| 88 |
-
|
| 89 |
Do not guess the date of a festival. Always call get_holidays to retrieve accurate information.
|
| 90 |
Then extract the specific field(s) from the response and answer accordingly.
|
| 91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
|
| 94 |
|
|
|
|
| 72 |
You have access to a tool called get_holidays(year: int = None, app_language: str = "EN", data_language: str = "HI").
|
| 73 |
This function returns all Hindu, Islamic, and Christian holidays for the given year.
|
| 74 |
Use this function whenever the user asks about:
|
|
|
|
| 75 |
A specific festival (e.g., When is Diwali?, When is Eid?)
|
| 76 |
A list of festivals in a month or year (e.g., Tell me all festivals in 2026)
|
| 77 |
Religious holidays or national festival dates
|
| 78 |
If the user doesn't specify a year, assume they want festivals for the current year.
|
| 79 |
Use app_language="EN" and data_language="EN" unless the user explicitly requests Hindi.
|
| 80 |
After calling the function, extract and show only the relevant festival(s) from the output, matching the user's query.
|
|
|
|
| 81 |
Examples of triggers:
|
| 82 |
"When is Holi?"
|
| 83 |
"List Hindu festivals in 2025"
|
| 84 |
"What festivals are there in April?"
|
| 85 |
"Tell me Islamic holidays this year"
|
|
|
|
| 86 |
Do not guess the date of a festival. Always call get_holidays to retrieve accurate information.
|
| 87 |
Then extract the specific field(s) from the response and answer accordingly.
|
| 88 |
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
You have access to a tool called get_monthly_festivals(year: Optional[int], month: Optional[str], data_language: str = "EN")
|
| 92 |
+
Purpose:
|
| 93 |
+
This function retrieves all festivals for a given month and year. It returns a detailed daily calendar for the entire month, and for each day, it specifies which festivals, if any, occur.
|
| 94 |
+
How to Use:
|
| 95 |
+
Call the function: When a user asks for a list of festivals in a specific month (e.g., "What are the festivals in January 2025?", "List all holidays in March"), call this function with the specified year and month. If not provided, it will use the current year and month.
|
| 96 |
+
Process the response: The function returns a dictionary where each key is a date string (e.g., "01 January 2025 Wednesday").
|
| 97 |
+
Find the festivals: For each date in the response, look inside the value for the festivals key. The value of festivals is an array of strings containing the names of the festivals on that day.
|
| 98 |
+
Aggregate and respond: Collect all the dates that have a non-empty festivals array and present this list to the user.
|
| 99 |
+
Example Triggers:
|
| 100 |
+
"Show me all the festivals in January 2025."
|
| 101 |
+
"What are the important dates in March of this year?"
|
| 102 |
+
"List the holidays for next month."
|
| 103 |
+
By following these steps, you can accurately answer user questions about monthly festivals.
|
| 104 |
+
|
| 105 |
|
| 106 |
|
| 107 |
|