Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +38 -30
prompts.py
CHANGED
@@ -13,36 +13,44 @@ table_info = """
|
|
13 |
In order to assist you, I have given the table information below -
|
14 |
Information:
|
15 |
ShiftDownTimeDetails table has
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
ShiftProductionDetails table has
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
If the query returns a null value then return as such.
|
47 |
If you could not find any relevant answer then reply so, do not make up answers randomly.
|
48 |
-
|
|
|
13 |
In order to assist you, I have given the table information below -
|
14 |
Information:
|
15 |
ShiftDownTimeDetails table has
|
16 |
+
ID: gives the id of the record.
|
17 |
+
dDate: The date on which the given instance was recorded.
|
18 |
+
Shift: Read Shift 1 or First or shift-A as Shift="First Shift" from the column and so on for Shift 2 and 3. So shift 2 or second or Second or shift-B will be read as 'Second Shift'. Same for shift 3.
|
19 |
+
MachineID: Identification of a machine. Can be used to recognize or identify a machine which might be specified in the user question.
|
20 |
+
OperationNo: The operation which was taking place on the machine when the current instance was recorded.
|
21 |
+
OperationID: The operator which was undertaking the given operation.
|
22 |
+
StartTime: The starting time of Downtime.
|
23 |
+
EndTime: The ending time of Downtime.
|
24 |
+
DownCategory: Specifies what kind of fault lead to the Downtime. Each instance of Downtime is divided into major categories, this column captures these categories.
|
25 |
+
DownID: Also called DownCategory_Reasons column. Use this column to answer questions related to the reasons of downtime. Specifies the reason behind the occurance of DownCategory and Downtime.
|
26 |
+
Downtime: It shows the time interval for which the machine was not working or machine was down as well as for any other synonyms. It is given in seconds. If anything related to downtime is asked, check this column.
|
27 |
+
ML_flag: When the downtime exceed a preset threshold, the value of ML_flag changes to 1 or ML_flag is raised.
|
28 |
+
Threshold: Represents a fixed amount of time for which Downtime is acceptable for the current instance. Exceeding of the threshold by Downtime raises an ML_flag.
|
29 |
ShiftProductionDetails table has
|
30 |
+
ID: gives the id of the record.
|
31 |
+
pDate: The date on which the given instance was recorded.
|
32 |
+
Shift: Read Shift 1 or First or shift-A as Shift="First Shift" from the column and so on for Shift 2 and 3. So shift 2 or second or Second or shift-B will be read as 'Second Shift'. Same for shift 3.
|
33 |
+
MachineID: Identification of a machine. Can be used to recognize or identify a machine which might be specified in the user question.
|
34 |
+
OperationNo: The operation which was taking place on the machine when the current instance was recorded.
|
35 |
+
OperationID: The operator which was undertaking the given operation.
|
36 |
+
Prod_Qty: Represents the quantity produced.
|
37 |
+
Sum_of_ActCycleTime: Records the total time it took for an operation of OperatioNo to complete undertaken by a Operator.
|
38 |
+
Sum_of_ActLoadUnload: Time between load and unload
|
39 |
+
CO_StdMachiningTime: standard machining time to complete 1 cycle
|
40 |
+
CO_StdLoadUnload: standard time between 2 cycles.
|
41 |
+
Rework_Performed: How many times rework was needed.
|
42 |
+
Marked_for_Rework: Bit value - 1 - marked; 0 - not marked
|
43 |
+
ActMachiningTime_Type12: Time taken for machine operation
|
44 |
+
ActLoadUnload_Type12: Time taken between 2 machine operations
|
45 |
+
Focas_AlarmHistory table has
|
46 |
+
ID: ID of the record.
|
47 |
+
AlarmNo: Represents the alarm number, is unique for a similar kind of alarms. Use this column to reference an instance of alarm.
|
48 |
+
AlarmGroupNo: Group number for alarms.
|
49 |
+
AlarmMSG: Use this column to answer anything related to the reason of alarm occurance, or why, which type questions related to alarms.It contains description of why the alarm was triggered.
|
50 |
+
AlarmAxisNo: Axis number for alarm type
|
51 |
+
AlarmTime: Records the time at which alarm was triggered. The format of the time is YYYY-MM-DD HH:mm:ss:000 where Y is year, M is month, D is day, H is hour, m is minutes, s is seconds. Carefully analyze this and return whatever is asked correctly.
|
52 |
+
MachineID: Identification of a machine. Can be used to recognize or identify a machine on which alarm was triggered in the user question.
|
53 |
+
|
54 |
If the query returns a null value then return as such.
|
55 |
If you could not find any relevant answer then reply so, do not make up answers randomly.
|
56 |
+
"""
|