Daemontatox amamrnaf commited on
Commit
b956b25
·
verified ·
1 Parent(s): 59bca71

updating the prompt so i can thoroughly compare the outputs (#1)

Browse files

- updating the prompt so i can thoroughly compare the outputs (368f340227fa92c36d7cf8115c79eb2b11226705)


Co-authored-by: amamr naf <amamrnaf@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +5 -19
app.py CHANGED
@@ -133,24 +133,18 @@ def bot_streaming(prompt_option, max_new_tokens=4096):
133
  "NOC Timesheet": (
134
  """Extract structured information from the provided timesheet. The extracted details should include:
135
 
136
- 1. Personnel Details:
137
-
138
  Name
139
 
140
  Position Title
141
 
142
  Work Location
143
 
144
- Contractor Status (Yes/No)
145
 
146
  NOC ID
147
 
148
  Month and Year
149
 
150
-
151
-
152
- 2. Service and Activity Summary:
153
-
154
  Regular Service Days (ONSHORE)
155
 
156
  Standby Days (ONSHORE in Doha)
@@ -163,34 +157,26 @@ Extended Hitch Days (ONSHORE Rotational)
163
 
164
  Service during Weekends & Public Holidays
165
 
166
-
167
-
168
- 3. Overtime and Compensation:
169
-
170
  ONSHORE Overtime Hours (Over 8 hours)
171
 
172
  OFFSHORE Overtime Hours (Over 12 hours)
173
 
174
  Per Diem Days (ONSHORE/OFFSHORE Rotational Personnel)
175
 
176
-
177
-
178
- 4. Training and Travel:
179
-
180
  Training Days
181
 
182
  Travel Days
183
 
 
184
 
 
185
 
186
- 5. Totals:
187
-
188
- Provide totals for all categories where applicable.
189
 
190
 
191
 
192
 
193
- Ensure all extracted data is presented in a clean, structured format. Omit any irrelevant or unrecognizable content. Use the exact terminology and units (e.g., 'days,' 'hours') as found in the document."""
194
  ),
195
  "NOC Basic": (
196
  "Based on the provided timesheet details, extract the following information:\n"
 
133
  "NOC Timesheet": (
134
  """Extract structured information from the provided timesheet. The extracted details should include:
135
 
 
 
136
  Name
137
 
138
  Position Title
139
 
140
  Work Location
141
 
142
+ Contractor
143
 
144
  NOC ID
145
 
146
  Month and Year
147
 
 
 
 
 
148
  Regular Service Days (ONSHORE)
149
 
150
  Standby Days (ONSHORE in Doha)
 
157
 
158
  Service during Weekends & Public Holidays
159
 
 
 
 
 
160
  ONSHORE Overtime Hours (Over 8 hours)
161
 
162
  OFFSHORE Overtime Hours (Over 12 hours)
163
 
164
  Per Diem Days (ONSHORE/OFFSHORE Rotational Personnel)
165
 
 
 
 
 
166
  Training Days
167
 
168
  Travel Days
169
 
170
+ Noc representative appoval's name as approved_by
171
 
172
+ Noc representative's date approval_date
173
 
174
+ Noc representative status as approval_status
 
 
175
 
176
 
177
 
178
 
179
+ The output should be formatted as a JSON instance that conforms to the JSON schema below.\n\nAs an example, for the schema {"properties": {"foo": {"title": "Foo", "description": "a list of strings", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]}\nthe object {"foo": ["bar", "baz"]} is a well-formatted instance of the schema. The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted."""
180
  ),
181
  "NOC Basic": (
182
  "Based on the provided timesheet details, extract the following information:\n"