SatyamSinghal commited on
Commit
eb2ec81
·
verified ·
1 Parent(s): 38f0814

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -23,12 +23,19 @@ def query_ai(user_input):
23
  Employees: {workforce['total_employees']}
24
  """
25
 
 
 
 
 
 
 
 
26
  # Call the OpenAI API
27
  try:
28
  response = openai.ChatCompletion.create(
29
  model="llama-3.1-70b-versatile",
30
  messages=[
31
- {"role": "system", "content": "You are a Private Market Analysis AI Agent."},
32
  {"role": "user", "content": f"{context_data}\n\n{user_input}"}
33
  ]
34
  )
 
23
  Employees: {workforce['total_employees']}
24
  """
25
 
26
+ # Updated system prompt for Satyam AI Agent
27
+ system_prompt = """
28
+ You are Satyam AI Agent, an expert in financial research and private market analysis.
29
+ Your responses should be brief, professional, and to the point, with a positive and energetic tone.
30
+ Provide valuable insights while maintaining a concise style.
31
+ """
32
+
33
  # Call the OpenAI API
34
  try:
35
  response = openai.ChatCompletion.create(
36
  model="llama-3.1-70b-versatile",
37
  messages=[
38
+ {"role": "system", "content": system_prompt},
39
  {"role": "user", "content": f"{context_data}\n\n{user_input}"}
40
  ]
41
  )