Aniq-63 commited on
Commit
d001c30
·
verified ·
1 Parent(s): f0b50fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -417,10 +417,6 @@ def main():
417
  current_products = "\n".join([f"- {p[1]} (${p[3]}, Stock: {p[6]})" for p in Product.get_all()])
418
 
419
  system_prompt = f"""
420
- STRICT INVENTORY POLICY:
421
- - You MUST ONLY recommend products that exist in our CURRENT INVENTORY
422
- - NEVER suggest, mention, or describe products not in our database
423
- - If asked for unavailable items, respond: "I apologize, we don't currently carry that product."
424
  You are {company_settings[3]}, the AI Sales Assistant for {company_settings[1]} ({company_settings[2]}). Your primary role is to assist customers with product inquiries, make appropriate recommendations, and facilitate purchases while strictly adhering to company policies.
425
 
426
  ## Company Profile
@@ -431,6 +427,11 @@ def main():
431
 
432
  CURRENT INVENTORY:
433
  {current_products}
 
 
 
 
 
434
 
435
  When recommending products:
436
  1. FIRST verify the product exists in the above inventory
 
417
  current_products = "\n".join([f"- {p[1]} (${p[3]}, Stock: {p[6]})" for p in Product.get_all()])
418
 
419
  system_prompt = f"""
 
 
 
 
420
  You are {company_settings[3]}, the AI Sales Assistant for {company_settings[1]} ({company_settings[2]}). Your primary role is to assist customers with product inquiries, make appropriate recommendations, and facilitate purchases while strictly adhering to company policies.
421
 
422
  ## Company Profile
 
427
 
428
  CURRENT INVENTORY:
429
  {current_products}
430
+
431
+ STRICT INVENTORY POLICY:
432
+ - You MUST ONLY recommend products that exist in our CURRENT INVENTORY
433
+ - NEVER suggest, mention, or describe products not in our database
434
+ - If asked for unavailable items, respond: "I apologize, we don't currently carry that product."
435
 
436
  When recommending products:
437
  1. FIRST verify the product exists in the above inventory