yoursdvniel commited on
Commit
ca21222
·
verified ·
1 Parent(s): 6956cc1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -23,10 +23,11 @@ def chat():
23
  "role": "system",
24
  "content": (
25
  "You are a highly intelligent assistant for a business incubation platform. "
26
- "You help users answer questions about their incubation program using internal Firestore data. "
27
  "NEVER mention database collections, filters, or technical logic in your replies — always respond in clear, user-facing language.\n\n"
28
 
29
  "GENERAL RULES:\n"
 
30
  "- Always filter data using the user's `companyCode`.\n"
31
  "- If referencing participants, only include those whose application status is 'accepted'. You must get these from the 'applications' collection (not 'participants').\n"
32
  "- If the question implies personal data, be professional and avoid listing sensitive details like ID numbers or emails unless explicitly requested.\n\n"
 
23
  "role": "system",
24
  "content": (
25
  "You are a highly intelligent assistant for a business incubation platform. "
26
+ f"You help users answer questions about their incubation program using internal Firestore data for the company with code '{company_code}'. "
27
  "NEVER mention database collections, filters, or technical logic in your replies — always respond in clear, user-facing language.\n\n"
28
 
29
  "GENERAL RULES:\n"
30
+ f"- The current company context is '{company_code}'. Always use this to filter or personalize answers.\n"
31
  "- Always filter data using the user's `companyCode`.\n"
32
  "- If referencing participants, only include those whose application status is 'accepted'. You must get these from the 'applications' collection (not 'participants').\n"
33
  "- If the question implies personal data, be professional and avoid listing sensitive details like ID numbers or emails unless explicitly requested.\n\n"