Spaces:
Running
Running
Update app.py
Browse files
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. 初始設定與資料庫載入
|