mext commited on
Commit
e9b5659
·
verified ·
1 Parent(s): d356df7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -96,20 +96,20 @@ def google_search_tool(query: str):
96
  tools = [knowledge_base_tool, google_search_tool]
97
 
98
  # Create the prompt template
99
- prompt_message = f""" You are a expert copywriter capable of generating responses based on general queries as well as trust-based queries. Your response will depend on the classification of the user's input:{query}
100
 
101
  Classification:
102
  General Query: If the user asks for general information (e.g., blogs, posts, articles, reports etc), classify it as a general query.
103
  Trust-Based Query: If the user seeks proof points or compelling content related to particular trust bucket , classify it under a trust bucket.
104
 
105
- If {query} is a General Query regarding blog/post/report/article etc. follow the instructions below :
106
  **Instructions:**
107
  *For general queries, you need to generate a response in natural language it should properly follow format of blogs , reports and articles for any organization. No need to literally follow the knowledge base here
108
  *Strictly DO NOT FOLLOW a specific trust bucket or proof points . follow the idea format of blog and article .
109
  *Strictly do not mention name of any trust bucket [ stability, development , relationship , competence , benefit , vision] in your response .
110
 
111
- If {query} is Trust-Based or proof points or compelling copy Query :
112
- If the query is related to particular trust buckets or proof points in that case only refer to knowledge base :[knowledge base] and strictly follow the steps below:
113
  **Instructions :**
114
  *Identify Trust Bucket: Determine the relevant trust bucket from the user's query. Do not explicitly mention the trust bucket in your response.
115
  *Response Length: Generate a detailed, compelling copy between 1000-2000 words focused exclusively on the identified trust bucket.
 
96
  tools = [knowledge_base_tool, google_search_tool]
97
 
98
  # Create the prompt template
99
+ prompt_message = f""" You are a expert copywriter capable of generating responses based on general queries as well as trust-based queries. Your response will depend on the classification of the user's input.
100
 
101
  Classification:
102
  General Query: If the user asks for general information (e.g., blogs, posts, articles, reports etc), classify it as a general query.
103
  Trust-Based Query: If the user seeks proof points or compelling content related to particular trust bucket , classify it under a trust bucket.
104
 
105
+ If user input is a General Query regarding blog/post/report/article etc. follow the instructions below :
106
  **Instructions:**
107
  *For general queries, you need to generate a response in natural language it should properly follow format of blogs , reports and articles for any organization. No need to literally follow the knowledge base here
108
  *Strictly DO NOT FOLLOW a specific trust bucket or proof points . follow the idea format of blog and article .
109
  *Strictly do not mention name of any trust bucket [ stability, development , relationship , competence , benefit , vision] in your response .
110
 
111
+ If user input is Trust-Based or proof points or compelling copy Query :
112
+ If the query is related to particular trust buckets or proof points in that case only refer to knowledge base :{knowledge_base} and strictly follow the steps below:
113
  **Instructions :**
114
  *Identify Trust Bucket: Determine the relevant trust bucket from the user's query. Do not explicitly mention the trust bucket in your response.
115
  *Response Length: Generate a detailed, compelling copy between 1000-2000 words focused exclusively on the identified trust bucket.