Spaces:
Build error

Wajahat698 commited on
Commit
3e7a11c
·
verified ·
1 Parent(s): 56fd9aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1047,7 +1047,7 @@ tools = [knowledge_base_tool, google_search_tool]
1047
 
1048
  prompt_message = f"""
1049
 
1050
- **You are an expert copywriter specializing in creating highly creative marketing content in a natural tone that integrates Trust Builders into various content formats for Volkswagen. Your goal is to produce compelling, factual, and well-structured material that is concise and based on the knowledgebase, adhering to the following guidelines. The content should be written in an active voice, using first-person perspective (“we”), and avoiding third-person perspective. Interconnect the trust-building elements contextually and creatively to enhance the reading flow, making it clear what the impact is on the audience. While prompts may mention terms like Stability, Development, Competence, Relationship, Benefit, or Vision, do not include words like “trust,” “beacon,” “beacon of hope,” and “realm” in any of the output. The word “trust” can be used in phrases like “Development trust builders,” but not elsewhere in the copy.**
1051
 
1052
  ### MANDATORY VERIFICATION CHECKLIST:
1053
  Before submitting **any content**, ensure that each piece includes:
@@ -1075,7 +1075,7 @@ Before submitting **any content**, ensure that each piece includes:
1075
 
1076
  *SOURCE LINK*
1077
  1. **Each source link must**:
1078
- -Be Latest and Valid Only.
1079
  2. Refer knowledge base for description, guiding principles, question to consider and examples for relevant trustbucket then *google search* and then give relevant trustbuilders.
1080
 
1081
  ##SPECIFICITY ENFORCEMENT
@@ -1127,7 +1127,7 @@ With every copy application involving always include this:
1127
  - **Structure**:
1128
  - **Headlines**: Create a compelling headline in active language that reflects the content, **without mentioning prohibited terms**.
1129
  - **Content**:
1130
- - Use **headings** with all content paragraphs to structure the article.**Donot give any source link in contents**
1131
  - **Perspective**: Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
1132
  - **Integration**: Interweave various trust-builder fluidly, focusing on specifics like names, numbers (dollar amounts and years), programs, strategies, places, awards, and actions, **without mentioning prohibited terms**.
1133
  - **Avoid Flowery Language**: Ensure content is clear and factual.
@@ -1272,7 +1272,7 @@ Note: When including heuristics and creative techniques, use the structure “He
1272
  - When use 'Our' or 'Volkswagen' use knowledgebase.
1273
  - **Audience Impact**: Always clarify what the information means to the audience.
1274
  - Refer knowledgebase when asked about trustifier or TrustLogic.
1275
- - When user ask find out top scoring statments find minimum 3 for each bucket with percentages .
1276
 
1277
  """
1278
 
@@ -1829,7 +1829,7 @@ def handle_prompt(prompt):
1829
  # Specialized responses if keywords detected
1830
  try:
1831
  output = agent_executor.invoke({
1832
- "input": f"{prompt} Be in natural tone, doesn’t use flowery language and typical AI words.Use knowledge when user say words like 'our','VW'or 'Volkswagen' pull information with percentage *EXACT(DONOT CHANGE THEM)* present in knowledgebase as it is ,for Customers or prospects as requested.format should be accurate and source link also ",
1833
  "chat_history": st.session_state.chat_history
1834
  })
1835
  full_response = output["output"]
 
1047
 
1048
  prompt_message = f"""
1049
 
1050
+ **You are an expert copywriter specializing in creating highly creative compelling marketing content in a natural tone that integrates Trust Builders into various content formats for Volkswagen. Your goal is to produce compelling, factual, and well-structured material that is concise and based on the knowledgebase, adhering to the following guidelines. The content should be written in an active voice, using first-person perspective (“we”), and avoiding third-person perspective. Interconnect the trust-building elements contextually and creatively to enhance the reading flow, making it clear what the impact is on the audience. While prompts may mention terms like Stability, Development, Competence, Relationship, Benefit, or Vision, do not include words like “trust,” “beacon,” “beacon of hope,” and “realm” in any of the output. The word “trust” can be used in phrases like “Development trust builders,” but not elsewhere in the copy.**
1051
 
1052
  ### MANDATORY VERIFICATION CHECKLIST:
1053
  Before submitting **any content**, ensure that each piece includes:
 
1075
 
1076
  *SOURCE LINK*
1077
  1. **Each source link must**:
1078
+ -Be Latest and Valid Only . if not found mention this if sources not found mention 'volskwagen.com'
1079
  2. Refer knowledge base for description, guiding principles, question to consider and examples for relevant trustbucket then *google search* and then give relevant trustbuilders.
1080
 
1081
  ##SPECIFICITY ENFORCEMENT
 
1127
  - **Structure**:
1128
  - **Headlines**: Create a compelling headline in active language that reflects the content, **without mentioning prohibited terms**.
1129
  - **Content**:
1130
+ - Use ** conversational headings** with all content paragraphs to structure the article.**Donot give any source link in contents**
1131
  - **Perspective**: Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
1132
  - **Integration**: Interweave various trust-builder fluidly, focusing on specifics like names, numbers (dollar amounts and years), programs, strategies, places, awards, and actions, **without mentioning prohibited terms**.
1133
  - **Avoid Flowery Language**: Ensure content is clear and factual.
 
1272
  - When use 'Our' or 'Volkswagen' use knowledgebase.
1273
  - **Audience Impact**: Always clarify what the information means to the audience.
1274
  - Refer knowledgebase when asked about trustifier or TrustLogic.
1275
+ - *When user ask find out top scoring statments find minimum 3 for each bucket with percentages* .
1276
 
1277
  """
1278
 
 
1829
  # Specialized responses if keywords detected
1830
  try:
1831
  output = agent_executor.invoke({
1832
+ "input": f"{prompt} Be in natural tone, doesn’t use flowery language and typical AI words.Use knowledge when user say words like 'our','VW'or 'Volkswagen' pull information with Percentages *EXACT(DONOT CHANGE THEM)* present in knowledgebase as it is ,for Customers or prospects as requested.",
1833
  "chat_history": st.session_state.chat_history
1834
  })
1835
  full_response = output["output"]