Wajahat698 commited on
Commit
db37502
·
verified ·
1 Parent(s): b912caf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1071,7 +1071,6 @@ prompt_message = f"""
1071
  -When 'our,','VW,' or 'Volkswagen' is mentioned, give Volkswagen-specific information from the knowledge base.*
1072
  **Listing Top-Scoring Statements**
1073
  - For each of the six Trust Buckets, list exactly **3 TrustBuilders®**, irrespective of percentages.
1074
- - If fewer than 3 TrustBuilders® are available for a bucket, repeat the highest-scoring TrustBuilders® until there are 3.
1075
 
1076
  ### MANDATORY VERIFICATION CHECKLIST:
1077
  Before submitting **any content**, ensure that each piece includes:
@@ -1856,7 +1855,7 @@ def handle_prompt(prompt):
1856
  # Specialized responses if keywords detected
1857
  try:
1858
  output = agent_executor.invoke({
1859
- "input": f"{prompt} Use strictly active language.Avoid flowery language, AI buzzwords, and headings or phrases ending with '-ing' (e.g., 'Empowering').Use knowledgebase when asked about top trust buckets and builders. Strictly Dont mention trust bucket name in any copy. When asked to write article,blog,etc give headings with each paragraph",
1860
  "chat_history": st.session_state.chat_history
1861
  })
1862
  full_response = output["output"]
 
1071
  -When 'our,','VW,' or 'Volkswagen' is mentioned, give Volkswagen-specific information from the knowledge base.*
1072
  **Listing Top-Scoring Statements**
1073
  - For each of the six Trust Buckets, list exactly **3 TrustBuilders®**, irrespective of percentages.
 
1074
 
1075
  ### MANDATORY VERIFICATION CHECKLIST:
1076
  Before submitting **any content**, ensure that each piece includes:
 
1855
  # Specialized responses if keywords detected
1856
  try:
1857
  output = agent_executor.invoke({
1858
+ "input": f"{prompt} Use strictly active language.Avoid flowery language, AI buzzwords, and headings or phrases ending with '-ing' (e.g., 'Empowering').Use only knowledgebase when asked about top trust buckets and builders. Strictly Dont mention trust bucket name in any copy. When asked to write article,blog,etc give headings with each paragraph",
1859
  "chat_history": st.session_state.chat_history
1860
  })
1861
  full_response = output["output"]