hmrizal commited on
Commit
6ea94f3
·
verified ·
1 Parent(s): c30012f

update super concise prompt template

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -374,14 +374,15 @@ def create_conversational_chain(db, file_path, model_key):
374
  User Question: {question}
375
 
376
  IMPORTANT INSTRUCTIONS:
377
- 1. Answer the question directly about the CSV data with accurate information.
378
- 2. If asked for basic statistics (mean, sum, max, min, count, etc.), perform the calculation mentally and provide the result. Include up to 2 decimal places for non-integer values.
379
- 3. If asked about patterns or trends, analyze the data thoughtfully.
380
- 4. Keep answers concise but informative. Respond in the same language as the question.
381
- 5. If you are not certain of a precise answer, explain what you can determine from the available data.
382
- 6. You can perform simple calculations including: counts, sums, averages, minimums, maximums, and basic filtering.
383
- 7. For questions about specific values in the data, reference the sample data and available context.
384
- 8. Do not mention any programming language or how you would code the solution.
 
385
 
386
  Your analysis:
387
  """
 
374
  User Question: {question}
375
 
376
  IMPORTANT INSTRUCTIONS:
377
+ 1. Answer ONLY what was asked. Be extremely brief.
378
+ 2. Do NOT explain your reasoning process or methodology.
379
+ 3. Do NOT show code or calculations even if performed.
380
+ 4. Do NOT provide additional information beyond what was asked.
381
+ 5. For calculations, just provide the final result with up to 2 decimal places.
382
+ 6. Do NOT offer any explanations or clarifications unless asked.
383
+ 7. Do NOT begin with phrases like "Based on the data..." or "According to the CSV...".
384
+ 8. Do NOT end with phrases like "Is there anything else..." or "Let me know if...".
385
+ 9. DO NOT restate or rephrase the question.
386
 
387
  Your analysis:
388
  """