Update app.py
Browse files
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
|
168 |
-
"
|
169 |
-
"
|
170 |
-
"
|
171 |
-
"
|
172 |
-
"
|
173 |
-
"
|
174 |
-
"
|
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 = [
|