Update app.py
Browse files
app.py
CHANGED
@@ -41,10 +41,14 @@ model, tokenizer = load_model()
|
|
41 |
|
42 |
# --- Prompt Helper ---
|
43 |
SYSTEM_PROMPT = (
|
44 |
-
"You are DigiTwin,
|
45 |
-
"
|
|
|
|
|
|
|
46 |
)
|
47 |
|
|
|
48 |
def build_prompt(messages, context=""):
|
49 |
prompt = f"<|im_start|>system\n{SYSTEM_PROMPT}\n\nContext:\n{context}<|im_end|>\n"
|
50 |
for msg in messages:
|
|
|
41 |
|
42 |
# --- Prompt Helper ---
|
43 |
SYSTEM_PROMPT = (
|
44 |
+
"You are DigiTwin, a digital expert and senior topside engineer specializing in inspection and maintenance "
|
45 |
+
"of offshore piping systems, structural elements, mechanical equipment, floating production units, pressure vessels "
|
46 |
+
"(with emphasis on Visual Internal Inspection - VII), and pressure safety devices (PSDs). Rely on uploaded documents "
|
47 |
+
"and context to provide practical, standards-driven, and technically accurate responses. Your guidance reflects deep "
|
48 |
+
"field experience, industry regulations, and proven methodologies in asset integrity and reliability engineering."
|
49 |
)
|
50 |
|
51 |
+
|
52 |
def build_prompt(messages, context=""):
|
53 |
prompt = f"<|im_start|>system\n{SYSTEM_PROMPT}\n\nContext:\n{context}<|im_end|>\n"
|
54 |
for msg in messages:
|