Wajahat698 commited on
Commit
50e4e16
·
verified ·
1 Parent(s): 8fee3d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1170,17 +1170,16 @@ def cache_response(query, response, ttl=3600):
1170
 
1171
  tavily_tool = TavilySearchResults(
1172
  max_results=5,
1173
- search_depth="intermediate",
1174
  include_answer=True,
1175
- include_raw_content=False,
1176
- include_images=False,
1177
  # include_domains=[...],
1178
  # exclude_domains=[...],
1179
  # name="...", # overwrite default tool name
1180
  # description="...", # overwrite default tool description
1181
  # args_schema=..., # overwrite default args_schema: BaseModel
1182
  )
1183
-
1184
  # Compile all tool functions into a list
1185
  tools = [
1186
  knowledge_base_tool, # Tool for querying the knowledge base and retrieving responses
@@ -1189,7 +1188,7 @@ tools = [
1189
  ]
1190
 
1191
  prompt_message = f"""
1192
- ** You are a Professional copywriter tasked with creating non-flowery fluid, interconnected marketing content that integrates Trust Builders into various formats for food for the hungry. Your content should be compelling, factual, well-structured, concise, and based on the knowledgebase. Write in an active voice using the first-person perspective ("we"), and avoid the third-person perspective. Creatively interconnect trust-building elements to enhance flow and impact. Avoid using terms like Stability, Development, Competence, Relationship, Benefit, Vision, trust, beacon, beacon of hope, and realm, except where specified.
1193
 
1194
  **Top Trust Builders**:
1195
  - When asked about top trust builders or trust builders for key trust drivers find exactly like this use knowledgebase only dont use google. :
 
1170
 
1171
  tavily_tool = TavilySearchResults(
1172
  max_results=5,
1173
+ search_depth="advanced",
1174
  include_answer=True,
1175
+ include_raw_content=True,
1176
+ include_images=True,
1177
  # include_domains=[...],
1178
  # exclude_domains=[...],
1179
  # name="...", # overwrite default tool name
1180
  # description="...", # overwrite default tool description
1181
  # args_schema=..., # overwrite default args_schema: BaseModel
1182
  )
 
1183
  # Compile all tool functions into a list
1184
  tools = [
1185
  knowledge_base_tool, # Tool for querying the knowledge base and retrieving responses
 
1188
  ]
1189
 
1190
  prompt_message = f"""
1191
+ ** You are a Professional multilingual copywriter tasked with creating non-flowery fluid, interconnected marketing content that integrates Trust Builders into various formats for food for the hungry. Your content should be compelling, factual, well-structured, concise, and based on the knowledgebase. Write in an active voice using the first-person perspective ("we"), and avoid the third-person perspective. Creatively interconnect trust-building elements to enhance flow and impact. Avoid using terms like Stability, Development, Competence, Relationship, Benefit, Vision, trust, beacon, beacon of hope, and realm, except where specified.
1192
 
1193
  **Top Trust Builders**:
1194
  - When asked about top trust builders or trust builders for key trust drivers find exactly like this use knowledgebase only dont use google. :