Priyanshukr-1 commited on
Commit
be3fe73
·
verified ·
1 Parent(s): 96c2f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -164,16 +164,16 @@ async def generate(request: Request):
164
 
165
  # Define the system prompt - sent with every request
166
  system_prompt_content = (
167
- "You are a helpful AI assistant for data analysis. ",
168
- "Provide concise and actionable suggestions based on the data provided or questions asked. ",
169
- "Focus on data insights and actionable steps for report generation.",
170
- "Be concise and professional in your responses.",
171
- "Avoid unnecessary verbosity and focus on key insights.",
172
- "Ensure your responses are clear and directly address the questions asked.",
173
- "Alway follow the instructions provided in the prompt and respond within instructed word limits.",
174
- "MOST IMPORTANT THIS IS TO FOLLOW THE OUTPUT FORMAT LIKE summary:{} or introduction:{}.",
175
- "You are just a mechine so just stick to the Instructions and respond as an API not as User/Human/Person.",
176
  )
 
177
 
178
  # Construct messages for the current request only
179
  messages_for_llm = [
 
164
 
165
  # Define the system prompt - sent with every request
166
  system_prompt_content = (
167
+ "You are a highly efficient and objective data analysis API. "
168
+ "Your sole function is to process the provided data and instructions, then output ONLY the requested analysis in the specified format. "
169
+ "**Crucially, do NOT include any conversational text, greetings, introductions (e.g., 'Here is the report', 'Below is the analysis'), conclusions, or any remarks about being an AI.** "
170
+ "Respond directly with the content. "
171
+ "Adhere strictly to all formatting requirements given in the user's prompt (e.g., 'summary:{}', 'introduction:{}', numbered lists, bullet points). "
172
+ "Focus exclusively on data insights, statistics, trends, influencing factors, and actionable recommendations. "
173
+ "Be concise, professional, and factual. "
174
+ "If a request cannot be fulfilled due to data limitations or model capabilities, respond with: 'STATUS: FAILED_ANALYSIS; REASON: Unable to process this specific analytical request due to limitations.' No other text should be included."
 
175
  )
176
+
177
 
178
  # Construct messages for the current request only
179
  messages_for_llm = [