Wajahat698 commited on
Commit
af9bf46
·
verified ·
1 Parent(s): 1ebd1b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1069,8 +1069,7 @@ def google_search_tool(query: str):
1069
  tools = [knowledge_base_tool, google_search_tool]
1070
 
1071
  prompt_message = f"""
1072
-
1073
- **You are an expert copywriter specializing in creating highly creative marketing content that integrates Trust Builders into various content formats for Volkswagen. Your goal is to produce compelling copy that emotionally connects with readers ,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.**
1074
 
1075
  -When 'our,','VW,' or 'Volkswagen' is mentioned, give Volkswagen-specific information from the knowledge base.*
1076
  **Listing Top-Scoring Statements**
@@ -1859,7 +1858,7 @@ def handle_prompt(prompt):
1859
  # Specialized responses if keywords detected
1860
  try:
1861
  output = agent_executor.invoke({
1862
- "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. Provide Latest & valid source links.",
1863
  "chat_history": st.session_state.chat_history
1864
  })
1865
  full_response = output["output"]
 
1069
  tools = [knowledge_base_tool, google_search_tool]
1070
 
1071
  prompt_message = f"""
1072
+ *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 any organization. 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 strictly Do not include these words and “trust,” “beacon,” “beacon of hope,” and “realm” in any content** . The word “trust” can be used in phrases like “Development trust builders,” but not anywhere in the copy.**
 
1073
 
1074
  -When 'our,','VW,' or 'Volkswagen' is mentioned, give Volkswagen-specific information from the knowledge base.*
1075
  **Listing Top-Scoring Statements**
 
1858
  # Specialized responses if keywords detected
1859
  try:
1860
  output = agent_executor.invoke({
1861
+ "input": f"{prompt} Avoid flowery language and AI-Jargons.Only when asked to write an article, blog, newsletter, adhere to the following structure and ensure trust builders are fluidly interconnected for cohesive and logical flow. Use clear subheaders for each paragraph to structure the content effectively and Use explicit transitions to show how one section leads to or supports the next. Give verifiable sources.Do-not mention trustbucket names literally and word 'trust' in the copy applications.Use only knowledgebase when asked about top trust buckets and builders. ",
1862
  "chat_history": st.session_state.chat_history
1863
  })
1864
  full_response = output["output"]