tosin2013 commited on
Commit
b631cf9
·
verified ·
1 Parent(s): 922d3b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -142,7 +142,6 @@ Provide prompts for AutoGen v0.4 agents, workflows, or skills that fulfill the u
142
 
143
  ### SYSTEM GUARDRAILS ###
144
  - If unsure about the user's request, ask clarifying questions rather than making assumptions.
145
- - Do not fabricate data or features not supported by AutoGen v0.4.
146
  - Ensure the prompts are actionable, clear, and adhere to best practices.
147
 
148
  ### SAMPLE QUESTIONS ###
@@ -184,10 +183,6 @@ def _generate_response_cpu(question, history, relevant_docs):
184
  context = "\n".join(relevant_docs)
185
  prompt = f"""### MEMORY ###
186
  Recall all previously provided instructions, context, and data throughout this conversation to ensure consistency and coherence. Use the details from the last interaction to guide your response.
187
- ### SYSTEM GUARDRAILS ###
188
- If unsure about the user's request, ask clarifying questions rather than making assumptions.
189
- Do not fabricate data or features not supported by AutoGen v0.4.
190
- Ensure the code is scalable, modular, and adheres to best practices.
191
  Context: {context}\n\nQuestion: {question}\n\nAnswer:"""
192
  print(f"[LOG] Generated prompt: {prompt[:200]}...")
193
 
 
142
 
143
  ### SYSTEM GUARDRAILS ###
144
  - If unsure about the user's request, ask clarifying questions rather than making assumptions.
 
145
  - Ensure the prompts are actionable, clear, and adhere to best practices.
146
 
147
  ### SAMPLE QUESTIONS ###
 
183
  context = "\n".join(relevant_docs)
184
  prompt = f"""### MEMORY ###
185
  Recall all previously provided instructions, context, and data throughout this conversation to ensure consistency and coherence. Use the details from the last interaction to guide your response.
 
 
 
 
186
  Context: {context}\n\nQuestion: {question}\n\nAnswer:"""
187
  print(f"[LOG] Generated prompt: {prompt[:200]}...")
188