SiangKai commited on
Commit
1dd1eaf
·
verified ·
1 Parent(s): 001a289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,8 @@ from langchain_community.retrievers import BM25Retriever
32
  # from langchain.schema import Document
33
  # from langchain_core.schema import Document
34
  from langchain_core.documents import Document
35
- from langchain_core.tools import tool
 
36
 
37
  # =======================================================================
38
  # 2. 初始設定與資料庫載入
 
32
  # from langchain.schema import Document
33
  # from langchain_core.schema import Document
34
  from langchain_core.documents import Document
35
+ # from langchain_core.tools import tool
36
+ from langchain_core.tools import StructuredTool
37
 
38
  # =======================================================================
39
  # 2. 初始設定與資料庫載入