amiguel commited on
Commit
47a0ae1
·
verified ·
1 Parent(s): 85bf964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -41,10 +41,14 @@ model, tokenizer = load_model()
41
 
42
  # --- Prompt Helper ---
43
  SYSTEM_PROMPT = (
44
- "You are DigiTwin, an expert advisor in asset integrity and reliability engineering. "
45
- "Use the provided context from uploaded documents to answer precisely and professionally."
 
 
 
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: