Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1043,7 +1043,7 @@ def google_search_tool(query: str):
|
|
| 1043 |
tools = [knowledge_base_tool, google_search_tool]
|
| 1044 |
|
| 1045 |
prompt_message = f"""
|
| 1046 |
-
**You are an expert copywriter specializing in creating highly engaging, data-driven, and audience-focused marketing content. Your workflow involves identifying TrustBuilders® first, followed by crafting exceptional content tailored to the organization's goals. Your goal is to produce compelling, impactful material that adheres to the highest standards and seamlessly integrates TrustBuilders. Follow these guidelines and knowledgebase**
|
| 1047 |
|
| 1048 |
### **Content Guidelines**
|
| 1049 |
|
|
@@ -1175,8 +1175,7 @@ Before finalizing:
|
|
| 1175 |
**Tone and Language:**
|
| 1176 |
- **Professional and Engaging Tone:**
|
| 1177 |
- Maintain a tone that is professional yet accessible, engaging the reader throughout the piece.
|
| 1178 |
-
- **Avoid Jargon:
|
| 1179 |
-
- Use clear and straightforward language, avoiding technical terms or jargon that might confuse the reader.
|
| 1180 |
- **Use Emotional Appeal Sparingly:**
|
| 1181 |
- Employ emotional elements to connect with the audience but avoid overusing them to maintain authenticity.
|
| 1182 |
- **Logical Transitions:**
|
|
@@ -1934,7 +1933,7 @@ def handle_prompt(prompt):
|
|
| 1934 |
# Specialized responses if keywords detected
|
| 1935 |
try:
|
| 1936 |
output = agent_executor.invoke({
|
| 1937 |
-
"input": f"{prompt} Avoid Flowery language. When asked to write a blog ,newsletter or article Use linking phrases to tie one section to the next.Donot mention trustbuckets name literally and word Trust. ",
|
| 1938 |
"chat_history": st.session_state.chat_history
|
| 1939 |
})
|
| 1940 |
full_response = output["output"]
|
|
|
|
| 1043 |
tools = [knowledge_base_tool, google_search_tool]
|
| 1044 |
|
| 1045 |
prompt_message = f"""
|
| 1046 |
+
**You are an expert copywriter specializing in creating highly compelling engaging, data-driven, and audience-focused marketing content. Your workflow involves identifying TrustBuilders® first, followed by crafting exceptional content tailored to the organization's goals. Your goal is to produce compelling, impactful material that adheres to the highest standards and seamlessly integrates TrustBuilders.Avoid Flowery language ai buzzwords and Follow these guidelines and knowledgebase**
|
| 1047 |
|
| 1048 |
### **Content Guidelines**
|
| 1049 |
|
|
|
|
| 1175 |
**Tone and Language:**
|
| 1176 |
- **Professional and Engaging Tone:**
|
| 1177 |
- Maintain a tone that is professional yet accessible, engaging the reader throughout the piece.
|
| 1178 |
+
- **Avoid Jargon: Use clear and straightforward language, avoiding technical terms or jargon that might confuse the reader.
|
|
|
|
| 1179 |
- **Use Emotional Appeal Sparingly:**
|
| 1180 |
- Employ emotional elements to connect with the audience but avoid overusing them to maintain authenticity.
|
| 1181 |
- **Logical Transitions:**
|
|
|
|
| 1933 |
# Specialized responses if keywords detected
|
| 1934 |
try:
|
| 1935 |
output = agent_executor.invoke({
|
| 1936 |
+
"input": f"{prompt} Avoid Flowery language. When asked to write a blog ,newsletter or article Use linking phrases to tie one section to the next.Donot mention trustbuckets name literally and word Trust. Give valid source link ",
|
| 1937 |
"chat_history": st.session_state.chat_history
|
| 1938 |
})
|
| 1939 |
full_response = output["output"]
|