Wajahat698 commited on
Commit
7c78d19
·
verified ·
1 Parent(s): e7e4ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -30,6 +30,7 @@ from langchain_text_splitters import CharacterTextSplitter
30
  import serpapi
31
  import requests
32
  import mpld3
 
33
 
34
  # Initialize logging
35
 
@@ -1511,10 +1512,23 @@ def compute_dataframe_proof_point_tool() -> str:
1511
  return compute_dataframe_proof_point()
1512
 
1513
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1514
  # compile all tools as a list
1515
  tools = [
1516
  knowledge_base_tool,
1517
- google_search_tool,
1518
  compute_dataframe_proof_point_tool,
1519
  ]
1520
 
 
30
  import serpapi
31
  import requests
32
  import mpld3
33
+ from langchain_community.tools import TavilySearchResults
34
 
35
  # Initialize logging
36
 
 
1512
  return compute_dataframe_proof_point()
1513
 
1514
 
1515
+ tavily_tool = TavilySearchResults(
1516
+ max_results=5,
1517
+ search_depth="advanced",
1518
+ topic="news",
1519
+ days=1,
1520
+ include_answer=True,
1521
+ include_raw_content=True,
1522
+ # include_domains=[...],
1523
+ exclude_domains=['example.com'],
1524
+ # name="...", # overwrite default tool name
1525
+ # description="...", # overwrite default tool description
1526
+ # args_schema=..., # overwrite default args_schema: BaseModel
1527
+ )
1528
  # compile all tools as a list
1529
  tools = [
1530
  knowledge_base_tool,
1531
+ tavily_tool,
1532
  compute_dataframe_proof_point_tool,
1533
  ]
1534