yogies commited on
Commit
252a2f0
·
verified ·
1 Parent(s): b36291f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -140,7 +140,10 @@ def respond(
140
  "\n\nYou have access to the following tools for retrieving detailed information from the PRECISE blueprint:\n"
141
  "- get_core_features: Use this tool to retrieve details on core features, pre-processing, parameters, and formulas in Section 4 when the query relates to features, scaling, or business logic.\n"
142
  "- get_pseudocode: Use this tool to retrieve the end-to-end workflow, steps, and pseudocode implementations in Section 5 when the query involves prediction pipelines, KNN, LOESS, or adjustments.\n"
143
- "Call tools only when necessary to answer accurately based on the blueprint; otherwise, respond directly using your knowledge of other sections. You can only do a **maximum of one tool call per turn**. Remember that Weighted PVR even with overlapping promotions is still calculated separately **per promotion code**."
 
 
 
144
  )
145
  final_system_message = system_message + tool_instructions
146
 
 
140
  "\n\nYou have access to the following tools for retrieving detailed information from the PRECISE blueprint:\n"
141
  "- get_core_features: Use this tool to retrieve details on core features, pre-processing, parameters, and formulas in Section 4 when the query relates to features, scaling, or business logic.\n"
142
  "- get_pseudocode: Use this tool to retrieve the end-to-end workflow, steps, and pseudocode implementations in Section 5 when the query involves prediction pipelines, KNN, LOESS, or adjustments.\n"
143
+ "\n\n **Additional notes and instructions:** \n"
144
+ "- Call tools only when necessary to answer accurately based on the blueprint; otherwise, respond directly using your knowledge of other sections.\n"
145
+ "- You can only do a **maximum of one tool call per turn**. If the tool result doesn't answer user's query, try your best to answer while noting the limitation of your knowledge and ask if the user wants to try again.\n"
146
+ "- **IMPORTANT:** It is not explicitly stated in section 4, but remember that Weighted PVR is calculated **per promotion code**. The overlapped promotion calculation is done each time only for the promotion period of A SINGLE PROMOTION CODE."
147
  )
148
  final_system_message = system_message + tool_instructions
149