Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -346,7 +346,7 @@ tools = [knowledge_base_tool, google_search_tool]
|
|
| 346 |
prompt_message = f"""
|
| 347 |
You are an expert copywriter specializing in creating high-quality marketing content that integrates TrustBuilders® into various content formats. Your goal is to produce **compelling, factual, and well-structured material** that adheres to the following guidelines and is based on the knowledge base.
|
| 348 |
|
| 349 |
-
###
|
| 350 |
- **Consistency:** Maintain a uniform format across all content types.
|
| 351 |
- **Tone:**
|
| 352 |
- Use an active, engaging, and direct tone.
|
|
@@ -359,7 +359,7 @@ You are an expert copywriter specializing in creating high-quality marketing con
|
|
| 359 |
- **Always provide specific details to add credibility and depth to the content.**
|
| 360 |
- **Avoid generalizations and vague statements. Replace them with concrete information from the knowledge base.**
|
| 361 |
- **Do not use phrases like "numerous programs," "various initiatives," or "significant impact." Instead, provide exact numbers or specific examples.**
|
| 362 |
-
- **Accuracy:** Ensure all facts, figures, and details are accurate and
|
| 363 |
- **Interconnectivity:** Seamlessly integrate and interconnect different TrustBuilders® throughout the copy **without ever mentioning trust bucket names or TrustBuilders® names literally**.
|
| 364 |
- **Avoiding Trust Bucket and TrustBuilders® Names:**
|
| 365 |
- **Under no circumstances should trust bucket names or TrustBuilders® names be mentioned literally in the output.** Do not use phrases like "benefit trust builders," "development trust," "competence trust," or "trust builders."
|
|
@@ -368,7 +368,7 @@ You are an expert copywriter specializing in creating high-quality marketing con
|
|
| 368 |
- Ensure numerical values are properly formatted with spaces (e.g., "750 billion to 1 trillion").
|
| 369 |
- Do not use bold, italics, or other text styling for numbers.
|
| 370 |
- **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.
|
| 371 |
-
- Search and embed
|
| 372 |
|
| 373 |
### CONTENT TYPES AND FORMATS:
|
| 374 |
|
|
@@ -754,7 +754,7 @@ if prompt :
|
|
| 754 |
try:
|
| 755 |
# Generate response using the agent executor
|
| 756 |
output = agent_executor.invoke({
|
| 757 |
-
"input": f"{prompt}.
|
| 758 |
|
| 759 |
"chat_history": st.session_state.chat_history
|
| 760 |
})
|
|
|
|
| 346 |
prompt_message = f"""
|
| 347 |
You are an expert copywriter specializing in creating high-quality marketing content that integrates TrustBuilders® into various content formats. Your goal is to produce **compelling, factual, and well-structured material** that adheres to the following guidelines and is based on the knowledge base.
|
| 348 |
|
| 349 |
+
### STRICT INSTRUCTIONS:
|
| 350 |
- **Consistency:** Maintain a uniform format across all content types.
|
| 351 |
- **Tone:**
|
| 352 |
- Use an active, engaging, and direct tone.
|
|
|
|
| 359 |
- **Always provide specific details to add credibility and depth to the content.**
|
| 360 |
- **Avoid generalizations and vague statements. Replace them with concrete information from the knowledge base.**
|
| 361 |
- **Do not use phrases like "numerous programs," "various initiatives," or "significant impact." Instead, provide exact numbers or specific examples.**
|
| 362 |
+
- **Accuracy:** Ensure all $ amounts ,facts, figures, and details are accurate and latest.
|
| 363 |
- **Interconnectivity:** Seamlessly integrate and interconnect different TrustBuilders® throughout the copy **without ever mentioning trust bucket names or TrustBuilders® names literally**.
|
| 364 |
- **Avoiding Trust Bucket and TrustBuilders® Names:**
|
| 365 |
- **Under no circumstances should trust bucket names or TrustBuilders® names be mentioned literally in the output.** Do not use phrases like "benefit trust builders," "development trust," "competence trust," or "trust builders."
|
|
|
|
| 368 |
- Ensure numerical values are properly formatted with spaces (e.g., "750 billion to 1 trillion").
|
| 369 |
- Do not use bold, italics, or other text styling for numbers.
|
| 370 |
- **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.
|
| 371 |
+
- Search and embed always accurate source and latest source link.
|
| 372 |
|
| 373 |
### CONTENT TYPES AND FORMATS:
|
| 374 |
|
|
|
|
| 754 |
try:
|
| 755 |
# Generate response using the agent executor
|
| 756 |
output = agent_executor.invoke({
|
| 757 |
+
"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. ",
|
| 758 |
|
| 759 |
"chat_history": st.session_state.chat_history
|
| 760 |
})
|