Wajahat698 commited on
Commit
3b5ab51
·
verified ·
1 Parent(s): 0443f84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -354,13 +354,11 @@ You are an expert copywriter specializing in creating high-quality marketing con
354
 
355
  **CONTENT TYPES AND FORMATS:**
356
  1. **Annual Reports or Articles:**
357
-
358
  - Guidelines: Look in knowledge base for guiding principles for generation of marketing copy before generating response.
359
  - **Introduction:** Start with "Here is a draft of your [Annual Report/Article]. Feel free to suggest further refinements."
360
  - **Trademark Usage:** Only use the registered trademark symbol (®) with these brands: TrustLogic, TrustBuilder/TrustBuilders, Six Buckets of Trust, TrustifierAI. Do not use (®) with other brands.
361
  - **Structure:**
362
  - **Headline:** This will contain the Principles.The headline should not mention TrustBuilders® or any trust buckets directly.
363
-
364
  - **Content:**
365
  - One main heading followed by 3-4 detailed paragraphs summarizing key content (without source links included and without any headings).
366
  - **Perspective:** Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
@@ -400,9 +398,9 @@ You are an expert copywriter specializing in creating high-quality marketing con
400
  - **Intro Line:** Start with "Here are some [Bucket name] TrustBuilders®. Let me know if you want to refine the results or find more."
401
  - **Format:** Categorise the TrustBuilders® into the following key Headings:
402
 
403
- 1### Organization:**List details about the organization. do-not mention any headings within bullet points.
404
- 2### People:** List individuals associated with the TrustBuilder®. do-not mention any headings within bullet points.
405
- 3 ### Offers/Services:**Detail the offers or services provided. do-not mention any headings within bullet points.
406
 
407
  - **Trust Bucket Focus:** Do not mix trust buckets; keep responses focused on the requested area.
408
  - *Refer to the knowledge base for Guiding Principles.*
@@ -612,7 +610,7 @@ if prompt :
612
  try:
613
  # Generate response using the agent executor
614
  output = agent_executor.invoke({
615
- "input": f"{prompt} Remove all headings followed by : .Strictly follow words (write more than the mentioned words in case of article or news letter) and already mention instructions.Handle problematic text (Usually it is related to numbers, figures and text nearby )clean it up make spaced so that it is readable and properly formatted for display in a web application. Avoid any unusual line breaks or formatting issues. Always provide sources links with trust builders. Find right trust builders, do not mix please. ",
616
 
617
  "chat_history": st.session_state.chat_history
618
  })
 
354
 
355
  **CONTENT TYPES AND FORMATS:**
356
  1. **Annual Reports or Articles:**
 
357
  - Guidelines: Look in knowledge base for guiding principles for generation of marketing copy before generating response.
358
  - **Introduction:** Start with "Here is a draft of your [Annual Report/Article]. Feel free to suggest further refinements."
359
  - **Trademark Usage:** Only use the registered trademark symbol (®) with these brands: TrustLogic, TrustBuilder/TrustBuilders, Six Buckets of Trust, TrustifierAI. Do not use (®) with other brands.
360
  - **Structure:**
361
  - **Headline:** This will contain the Principles.The headline should not mention TrustBuilders® or any trust buckets directly.
 
362
  - **Content:**
363
  - One main heading followed by 3-4 detailed paragraphs summarizing key content (without source links included and without any headings).
364
  - **Perspective:** Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
 
398
  - **Intro Line:** Start with "Here are some [Bucket name] TrustBuilders®. Let me know if you want to refine the results or find more."
399
  - **Format:** Categorise the TrustBuilders® into the following key Headings:
400
 
401
+ 1.### Organization:**List details about the organization. do-not mention any headings within bullet points.
402
+ 2.### People:** List individuals associated with the TrustBuilder®. do-not mention any headings within bullet points.
403
+ 3.### Offers/Services:**Detail the offers or services provided. do-not mention any headings within bullet points.
404
 
405
  - **Trust Bucket Focus:** Do not mix trust buckets; keep responses focused on the requested area.
406
  - *Refer to the knowledge base for Guiding Principles.*
 
610
  try:
611
  # Generate response using the agent executor
612
  output = agent_executor.invoke({
613
+ "input": f"{prompt} .Strictly follow words (write more than the mentioned words in case of article or news letter) and already mention instructions.Handle problematic text (Usually it is related to numbers, figures and text nearby )clean it up make spaced so that it is readable and properly formatted for display in a web application. Avoid any unusual line breaks or formatting issues. Always provide sources links with trust builders. Find right trust builders, do not mix please. ",
614
 
615
  "chat_history": st.session_state.chat_history
616
  })