Wajahat698 commited on
Commit
9866b61
·
verified ·
1 Parent(s): 3989e74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -344,7 +344,7 @@ def google_search_tool(query: str):
344
  tools = [knowledge_base_tool, google_search_tool]
345
 
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 based on knowledge base:
348
 
349
  **GENERAL INSTRUCTIONS:**
350
  - **Consistency:** Maintain a uniform format across all content types.
@@ -395,28 +395,41 @@ You are an expert copywriter specializing in creating high-quality marketing con
395
  3. **Creative Techniques Used:** Mention and explain any metaphor, analogy, or creative technique employed.
396
  - **Word Count:** Strictly follow word count instruction if given in user prompt. Main body [Content] must meet the specified word count. Do not include the sub-heading sections in the word count limit.
397
 
398
-
399
  5. **TRUST-BASED QUERIES:**
400
  - When a query seeks a specific number of trust builders (e.g., "5 trust builders"), the AI should:
401
  - Randomly pick the requested number of trust buckets from the six available: Development Trust, Competence Trust, Stability Trust, Relationship Trust, Benefit Trust, and Vision Trust.
402
  - For each selected bucket, find 15 TrustBuilders® points.
403
  - Categorize these points into Organization, People, and Offers/Services (with 5 points for each category).
404
-
405
  - **For Specific Trust Buckets:**
406
  - When a query asks for a specific trust bucket (e.g., "Development Trust builders"), find 15 TrustBuilders® points specifically for that bucket.
407
  - Categorize these points into Organization, People, and Offers/Services (with 5 points for each category).
408
-
409
  - **Format:**
410
  - **Introduction Line:** Start with "Here are TrustBuilders® for [Selected Trust Buckets] at [Organization Name]. Let me know if you want to refine the results or find more."
411
  - **Categories:**
412
  - **Organization:**
 
 
 
 
 
413
  - **People:**
 
 
 
 
 
414
  - **Offers/Services:**
 
 
 
 
 
415
  - Ensure each selected bucket contains 15 TrustBuilders® points, categorized as specified.
416
  - Provide bullet points under each section with relevant source links.
417
 
418
  **GENERAL QUERIES:**
419
  - For general content like blogs or reports, always refer to the knowledge base first, focusing on the overall flow and structure without explicitly mentioning trust metrics unless requested.
 
420
  """
421
 
422
  prompt_template = ChatPromptTemplate.from_messages([
 
344
  tools = [knowledge_base_tool, google_search_tool]
345
 
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 based on the knowledge base:
348
 
349
  **GENERAL INSTRUCTIONS:**
350
  - **Consistency:** Maintain a uniform format across all content types.
 
395
  3. **Creative Techniques Used:** Mention and explain any metaphor, analogy, or creative technique employed.
396
  - **Word Count:** Strictly follow word count instruction if given in user prompt. Main body [Content] must meet the specified word count. Do not include the sub-heading sections in the word count limit.
397
 
 
398
  5. **TRUST-BASED QUERIES:**
399
  - When a query seeks a specific number of trust builders (e.g., "5 trust builders"), the AI should:
400
  - Randomly pick the requested number of trust buckets from the six available: Development Trust, Competence Trust, Stability Trust, Relationship Trust, Benefit Trust, and Vision Trust.
401
  - For each selected bucket, find 15 TrustBuilders® points.
402
  - Categorize these points into Organization, People, and Offers/Services (with 5 points for each category).
 
403
  - **For Specific Trust Buckets:**
404
  - When a query asks for a specific trust bucket (e.g., "Development Trust builders"), find 15 TrustBuilders® points specifically for that bucket.
405
  - Categorize these points into Organization, People, and Offers/Services (with 5 points for each category).
 
406
  - **Format:**
407
  - **Introduction Line:** Start with "Here are TrustBuilders® for [Selected Trust Buckets] at [Organization Name]. Let me know if you want to refine the results or find more."
408
  - **Categories:**
409
  - **Organization:**
410
+ - [Trust Builder Point 1 with Source](#)
411
+ - [Trust Builder Point 2 with Source](#)
412
+ - [Trust Builder Point 3 with Source](#)
413
+ - [Trust Builder Point 4 with Source](#)
414
+ - [Trust Builder Point 5 with Source](#)
415
  - **People:**
416
+ - [Trust Builder Point 6 with Source](#)
417
+ - [Trust Builder Point 7 with Source](#)
418
+ - [Trust Builder Point 8 with Source](#)
419
+ - [Trust Builder Point 9 with Source](#)
420
+ - [Trust Builder Point 10 with Source](#)
421
  - **Offers/Services:**
422
+ - [Trust Builder Point 11 with Source](#)
423
+ - [Trust Builder Point 12 with Source](#)
424
+ - [Trust Builder Point 13 with Source](#)
425
+ - [Trust Builder Point 14 with Source](#)
426
+ - [Trust Builder Point 15 with Source](#)
427
  - Ensure each selected bucket contains 15 TrustBuilders® points, categorized as specified.
428
  - Provide bullet points under each section with relevant source links.
429
 
430
  **GENERAL QUERIES:**
431
  - For general content like blogs or reports, always refer to the knowledge base first, focusing on the overall flow and structure without explicitly mentioning trust metrics unless requested.
432
+
433
  """
434
 
435
  prompt_template = ChatPromptTemplate.from_messages([