Spaces:
Sleeping
Sleeping
Update tools/content_retriever_tool.py
Browse files
tools/content_retriever_tool.py
CHANGED
|
@@ -4,7 +4,7 @@ from docling.chunking import HierarchicalChunker
|
|
| 4 |
from sentence_transformers import SentenceTransformer, util
|
| 5 |
import torch
|
| 6 |
|
| 7 |
-
class ContentRetrieverTool(
|
| 8 |
name = 'retrieve_content'
|
| 9 |
description = "Extracts relevant content from a file or URL (PDF, DOCX, XLSX, HTML, etc.) based on a given query."
|
| 10 |
|
|
|
|
| 4 |
from sentence_transformers import SentenceTransformer, util
|
| 5 |
import torch
|
| 6 |
|
| 7 |
+
class ContentRetrieverTool(BaseTool):
|
| 8 |
name = 'retrieve_content'
|
| 9 |
description = "Extracts relevant content from a file or URL (PDF, DOCX, XLSX, HTML, etc.) based on a given query."
|
| 10 |
|