Wajahat698 commited on
Commit
ef7f3a4
·
verified ·
1 Parent(s): 3ce211b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -1229,24 +1229,24 @@ def cache_response(query, response, ttl=3600):
1229
 
1230
 
1231
 
1232
- # tavily_tool = TavilySearchResults(
1233
- # max_results=10,
1234
- # search_depth="advanced",
1235
- # topic="news",
1236
- # days=7,
1237
- # include_answer=True,
1238
- # include_raw_content=True,
1239
- # # include_domains=[...],
1240
- # exclude_domains=['example.com'],
1241
- # # name="...", # overwrite default tool name
1242
- # # description="...", # overwrite default tool description
1243
- # # args_schema=..., # overwrite default args_schema: BaseModel
1244
- # )
1245
- # Compile all tool functions into a list
1246
  tools = [
1247
  knowledge_base_tool, # Tool for querying the knowledge base and retrieving responses
1248
- #tavily_tool,
1249
- google_search_tool, # Tool for performing a Google search and retrieving search result snippets
1250
  ]
1251
 
1252
  prompt_message = f"""
@@ -2188,7 +2188,7 @@ def handle_prompt(prompt):
2188
  - *When finding trustbuilders *Be over specific with numbers,names,dollars, programs ,awards and action**.
2189
  - Give output in proper formatting.
2190
  - Response in same language in which asked.
2191
- -Use google to provide correct sources links.
2192
 
2193
 
2194
  """
 
1229
 
1230
 
1231
 
1232
+ tavily_tool = TavilySearchResults(
1233
+ max_results=10,
1234
+ search_depth="advanced",
1235
+ topic="news",
1236
+ days=1,
1237
+ include_answer=True,
1238
+ include_raw_content=True,
1239
+ # include_domains=[...],
1240
+ exclude_domains=['example.com'],
1241
+ # name="...", # overwrite default tool name
1242
+ # description="...", # overwrite default tool description
1243
+ # args_schema=..., # overwrite default args_schema: BaseModel
1244
+ )
1245
+ Compile all tool functions into a list
1246
  tools = [
1247
  knowledge_base_tool, # Tool for querying the knowledge base and retrieving responses
1248
+ tavily_tool,
1249
+ #google_search_tool, # Tool for performing a Google search and retrieving search result snippets
1250
  ]
1251
 
1252
  prompt_message = f"""
 
2188
  - *When finding trustbuilders *Be over specific with numbers,names,dollars, programs ,awards and action**.
2189
  - Give output in proper formatting.
2190
  - Response in same language in which asked.
2191
+ -Use google to provide correct sources links containg the trustbuilder text information.
2192
 
2193
 
2194
  """