krrishk22 commited on
Commit
5aa2914
·
verified ·
1 Parent(s): e1ea60f

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +144 -0
prompts.yaml CHANGED
@@ -40,6 +40,150 @@
40
  Observation: "Horoscope for Aries on 2025-10-26: Today is a good day to focus on your career goals. Stay calm and avoid unnecessary arguments. Health remains stable."
41
  ---
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  Task: "Generate an image of the oldest person in this document."
45
 
 
40
  Observation: "Horoscope for Aries on 2025-10-26: Today is a good day to focus on your career goals. Stay calm and avoid unnecessary arguments. Health remains stable."
41
  ---
42
 
43
+ Thank you for the clarification! Based on your full example format (`Task`, `Thought`, `Code`, `Observation`), here are full fine-tuning samples for your `prompt.yaml` file — using the Panchang use-case in English, and written in your specified style:
44
+
45
+ ---
46
+
47
+
48
+
49
+ Task: "Get the Panchang for today in Hindi."
50
+
51
+ Thought: I will proceed step by step and use the following tools:
52
+ Use the `get_date_panchang` tool without specifying a date, which defaults to today.
53
+ Set the `data_language` to `"HI"` to get the result in Hindi.
54
+
55
+ Code:
56
+
57
+ ```py
58
+ panchang = get_date_panchang(data_language="HI")
59
+ print(panchang)
60
+ ```
61
+ <end_code>
62
+
63
+ Observation: "📅 21 जून 2025 शनिवार का पंचांग (नई दिल्ली, भारत): \[...]"
64
+ The Panchang data was successfully fetched for today's date in Hindi.
65
+
66
+ ---
67
+
68
+ Task: "Get the Panchang for 1st January 2025 in English."
69
+
70
+ Thought: The user has asked for Panchang on a specific date and in English. I will call the `get_date_panchang` tool with date="2025-01-01" and data\_language="EN".
71
+
72
+ Code:
73
+
74
+ ```py
75
+ panchang = get_date_panchang(date="2025-01-01", data_language="EN")
76
+ print(panchang)
77
+ ```<end_code>
78
+
79
+ Observation: "📅 January 1, 2025 Wednesday Panchang (New Delhi, India): \[...]"
80
+ The date and language are correctly passed and the API returns a structured Panchang entry.
81
+
82
+ ---
83
+
84
+ Task: "Tell me today's Sunrise and Sunset time."
85
+
86
+ Thought: I will call the `get_date_panchang` tool with default (today) and `data_language="EN"`, then extract only `Sunrise` and `Sunset` from the result.
87
+
88
+ Code:
89
+
90
+ ```py
91
+ data = get_date_panchang(data_language="EN")
92
+ sunrise = extract_field(data, "Sunrise")
93
+ sunset = extract_field(data, "Sunset")
94
+ print(f"Sunrise: {sunrise}, Sunset: {sunset}")
95
+ ```<end_code>
96
+
97
+ Observation "Sunrise: 05:24 AM, Sunset: 07:22 PM"
98
+ Correctly extracted both time fields from the Panchang output.
99
+
100
+ ---
101
+
102
+ Task: "List today’s festivals."
103
+
104
+ Thought: I will fetch today’s Panchang using `get_date_panchang(data_language="EN")` and extract the `festivals` field.
105
+ Code:
106
+
107
+ ```py
108
+ data = get_date_panchang(data_language="EN")
109
+ festivals = extract_field(data, "festivals")
110
+ print("Festivals today:", festivals)
111
+ ```
112
+ <end_code>
113
+
114
+ Observation: "Festivals today: International Yoga Day, Yogini Ekadashi"
115
+ Festival list was successfully parsed from the Panchang response.
116
+
117
+ ---
118
+
119
+
120
+ Task: "Get Chandrabalam and Tarabalam for 14 August 2025 in Hindi."
121
+
122
+ Thought: I will use `get_date_panchang(date="2025-08-14", data_language="HI")` to get the full Panchang in Hindi, then extract the required fields.
123
+
124
+ Code:
125
+
126
+ ```py
127
+ data = get_date_panchang(date="2025-08-14", data_language="HI")
128
+ chandrabalam = extract_field(data, "Chandrabalam")
129
+ tarabalam = extract_field(data, "Tarabalam")
130
+ print("चन्द्रबलम्:", chandrabalam)
131
+ print("ताराबलम्:", tarabalam)
132
+ ```
133
+
134
+ <end_code>
135
+
136
+ Observation: "चन्द्रबलम्: \[...] ताराबलम्: \[...]"
137
+ Correct information for lunar and stellar influence was displayed for the given date.
138
+
139
+ ---
140
+
141
+
142
+ Task: "When is Rahu Kalam tomorrow?"
143
+
144
+ Thought: The user wants Rahu Kalam for the next day. I will compute tomorrow’s date, fetch the Panchang using `get_date_panchang` with that date and extract the Rahu Kalam timing.
145
+
146
+ Code:
147
+
148
+ ```py
149
+ import datetime
150
+ tomorrow = (datetime.datetime.now() + datetime.timedelta(days=1)).strftime("%Y-%m-%d")
151
+ data = get_date_panchang(date=tomorrow, data_language="EN")
152
+ rahu_kalam = extract_field(data, "Rahu Kalam")
153
+ print("Rahu Kalam tomorrow:", rahu_kalam)
154
+ ```
155
+
156
+ <end_code>
157
+
158
+ Observation: "Rahu Kalam tomorrow: 08:53 AM – 10:38 AM"
159
+ Time correctly computed and extracted.
160
+
161
+ ---
162
+
163
+
164
+ Task: "What is today’s Tithi and Nakshatra?"
165
+
166
+ Thought: I will call the Panchang for today in English, and filter only the `Tithi` and `Nakshatra` sections.
167
+
168
+ Code:
169
+
170
+ ```py
171
+ data = get_date_panchang(data_language="EN")
172
+ tithi = extract_field(data, "Tithi")
173
+ nakshatra = extract_field(data, "Nakshatra")
174
+ print("Tithi:", tithi)
175
+ print("Nakshatra:", nakshatra)
176
+ ```
177
+
178
+ <end_code>
179
+
180
+ Observation: "Tithi: Dashami until 07:18 AM, then Ekadashi\nNakshatra: Ashwini until 07:50 PM, then Bharani"
181
+ Both fields correctly extracted and formatted.
182
+
183
+
184
+
185
+
186
+ ---
187
 
188
  Task: "Generate an image of the oldest person in this document."
189