Antoine101 commited on
Commit
daca3ec
·
verified ·
1 Parent(s): fee0f4a

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +2 -0
tools.py CHANGED
@@ -1,7 +1,9 @@
1
  from langchain_community.retrievers import BM25Retriever
2
  from langchain.tools import Tool
 
3
 
4
 
 
5
 
6
  bm25_retriever = BM25Retriever.from_documents(docs)
7
 
 
1
  from langchain_community.retrievers import BM25Retriever
2
  from langchain.tools import Tool
3
+ from langchain_community.tools import DuckDuckGoSearchRun
4
 
5
 
6
+ search_tool = DuckDuckGoSearchRun()
7
 
8
  bm25_retriever = BM25Retriever.from_documents(docs)
9